From 1f808a1d1d042955e98eb92d09e1b6b8154315e9 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 14 Sep 2012 16:04:59 +0200 Subject: Introduce an option to disable stripping during installation The default is the current behaviour: strip on installing release, no strip on installing debug. This option does not change the installation of debug builds because qmake does not support that. Change-Id: Ic208d5ffe860d5f1ee1cafdc944e12001673d33f Reviewed-by: Davide Pesavento Reviewed-by: Oswald Buddenhagen --- configure | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure') diff --git a/configure b/configure index cb146b4bb9..364e4dab88 100755 --- a/configure +++ b/configure @@ -738,6 +738,7 @@ MIN_DBUS_1_VERSION=0.93 # initalize internal variables CFG_CONFIGURE_EXIT_ON_ERROR=yes CFG_PROFILE=no +CFG_STRIP=yes CFG_GUI=auto # (yes|no|auto) CFG_WIDGETS=yes CFG_QCONFIG=full @@ -1297,6 +1298,13 @@ while [ "$#" -gt 0 ]; do UNKNOWN_OPT=yes fi ;; + strip) + if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then + CFG_STRIP=$VAL + else + UNKNOWN_OPT=yes + fi + ;; testcocoon) if [ "$VAL" = "yes" ]; then QTCONFIG_CONFIG="$QTCONFIG_CONFIG testcocoon" @@ -3202,6 +3210,9 @@ Additional options: -no-icu ............ Do not compile support for ICU libraries. + -icu ............... Compile support for ICU libraries. + -no-strip .......... Do not strip binaries and libraries of unneeded symbols. + * -strip ............. Strip binaries and libraries of unneeded symbols when installing. + $PHN -no-pch ............ Do not use precompiled header support. $PHY -pch ............... Use precompiled header support. @@ -5282,6 +5293,7 @@ if [ "$CFG_USE_GNUMAKE" = "yes" ]; then fi [ "$CFG_REDUCE_EXPORTS" = "yes" ] && QT_CONFIG="$QT_CONFIG reduce_exports" [ "$CFG_REDUCE_RELOCATIONS" = "yes" ] && QT_CONFIG="$QT_CONFIG reduce_relocations" +[ "$CFG_STRIP" = "no" ] && QMAKE_CONFIG="$QMAKE_CONFIG nostrip" [ "$CFG_PRECOMPILE" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG precompile_header" if [ "$CFG_SEPARATE_DEBUG_INFO" = "yes" ]; then QMakeVar add QMAKE_CFLAGS -g -- cgit v1.2.3