summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAndreas Holzammer <andreas.holzammer@kdab.com>2012-08-07 22:22:38 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-09 03:25:53 +0200
commit661cf8ff4ef55663977a74d9bccf21c50b50f513 (patch)
tree81c9d9fd5eeaed7e1710b11cea40c6fa43d1b6a3 /configure
parent63eb5b5a798bd4d5de57243f79fde06b17233820 (diff)
Make it possible to force generation of debug info in release builds
Change-Id: Ie79e5a6a87475d5140163a2a547b4385a53fc05f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 2f7c537ee5..304136c75c 100755
--- a/configure
+++ b/configure
@@ -691,6 +691,7 @@ CFG_QCONFIG=full
CFG_DEBUG=auto
CFG_MYSQL_CONFIG=
CFG_DEBUG_RELEASE=no
+CFG_FORCEDEBUGINFO=no
CFG_SHARED=yes
CFG_SM=auto
CFG_XSHAPE=auto
@@ -1356,6 +1357,9 @@ while [ "$#" -gt 0 ]; do
debug)
CFG_DEBUG="$VAL"
;;
+ force-debug-info)
+ CFG_FORCEDEBUGINFO="$VAL"
+ ;;
developer-build|commercial|opensource)
# These switches have been dealt with already
;;
@@ -2501,6 +2505,10 @@ if [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
QT_CONFIG="$QT_CONFIG build_all debug_and_release"
fi
+if [ "$CFG_FORCEDEBUGINFO" = "yes" ]; then
+ QT_CONFIG="$QT_CONFIG force_debug_info"
+fi
+
# pass on $CFG_SDK to the configure tests.
if [ '!' -z "$CFG_SDK" ]; then
MAC_CONFIG_TEST_COMMANDLINE="$MAC_CONFIG_TEST_COMMANDLINE -sdk $CFG_SDK"
@@ -2977,6 +2985,8 @@ Configure options:
-debug-and-release . Compile and link two versions of Qt, with and without
debugging turned on (Mac only).
+ -force-debug-info .. Create symbol files for release builds.
+
-developer-build ... Compile and link Qt with Qt developer options (including auto-tests exporting)
-opensource ........ Compile and link the Open-Source Edition of Qt.
@@ -6036,6 +6046,9 @@ if [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
else
echo "Debug .................. $CFG_DEBUG"
fi
+if [ "$CFG_RELEASE" = "yes" ] || [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
+ echo "Force debug info ....... $CFG_FORCEDEBUGINFO"
+fi
echo "C++11 support .......... $CFG_CXX11"
if [ -n "$PKG_CONFIG" ]; then
echo "pkg-config ............. yes"