summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-12-14 14:02:53 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-12-14 14:56:32 (GMT)
commit19a2bd42d11d070e229cf00c43d6aa777d590415 (patch)
treef6e79dbd7a4de138540638e3ce0a2f5952cda101 /mkspecs
parent9c4a79038fcd2c2a90a277db81aaadac50eaa59a (diff)
downloadQt-19a2bd42d11d070e229cf00c43d6aa777d590415.zip
Qt-19a2bd42d11d070e229cf00c43d6aa777d590415.tar.gz
Qt-19a2bd42d11d070e229cf00c43d6aa777d590415.tar.bz2
Add "nocopy" mode for seperate-debug-info to configure
This patch was written by Harald Fernengel for Maemo5 port. This effectively just adds -g to QMAKE_CFLAGS & QMAKE_CXXFLAGS and is mainly for packagers who want to build Qt in release mode and still have debug symbols, but will want to strip those debug symbols out themselves (rather than let Qt do it). Reviewed-By: Harald Fernengel Reviewed-By: Thiago Macieira
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/unix/separate_debug_info.prf2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/unix/separate_debug_info.prf b/mkspecs/features/unix/separate_debug_info.prf
index 0c95baf..c675828 100644
--- a/mkspecs/features/unix/separate_debug_info.prf
+++ b/mkspecs/features/unix/separate_debug_info.prf
@@ -1,5 +1,5 @@
-!staticlib:!static:!contains(TEMPLATE, subdirs):!isEmpty(QMAKE_OBJCOPY) {
+!separate_debug_info_nocopy:!staticlib:!static:!contains(TEMPLATE, subdirs):!isEmpty(QMAKE_OBJCOPY) {
QMAKE_SEPARATE_DEBUG_INFO = (test -z \"$(DESTDIR)\" || cd \"$(DESTDIR)\" ; targ=`basename $(TARGET)`; $$QMAKE_OBJCOPY --only-keep-debug \"\$\$targ\" \"\$\$targ.debug\" && $$QMAKE_OBJCOPY --strip-debug \"\$\$targ\" && $$QMAKE_OBJCOPY --add-gnu-debuglink=\"\$\$targ.debug\" \"\$\$targ\" && chmod -x \"\$\$targ.debug\" ) ;
QMAKE_INSTALL_SEPARATE_DEBUG_INFO = test -z "$(DESTDIR)" || cd \"$(DESTDIR)\" ; $(INSTALL_FILE) `basename $(TARGET)`.debug $(INSTALL_ROOT)/\$\$target_path/