From ccdc98cfd8b5001c85b9d74d8f47b93801a15ffc Mon Sep 17 00:00:00 2001 From: Donald Carr Date: Fri, 30 Mar 2012 18:20:34 +0000 Subject: Don't suppress using separate debug info when cross compiling The configure script currently automatically assumes that if you are cross compiling, we should avoid trying to generate and strip separate debug information due to toolchain limitations. Historically there may have been good grounds for this, but it seems like an aggressively pessimistic assumption which ignores the standardization/advancement of embedded toolchains as a whole. This assumption also extends to host compilers which deviate from the automatically detected "platform" compiler, such as Clang. Change-Id: Ifed2750325178bb5291d8ca1dde92925bfa36065 Reviewed-by: Girish Ramakrishnan Reviewed-by: Thiago Macieira Reviewed-by: Oswald Buddenhagen --- configure | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 6103961fcd..e782f2389d 100755 --- a/configure +++ b/configure @@ -2563,12 +2563,6 @@ if [ "$BUILD_ON_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = "auto" ]; then fi fi -# don't autodetect support for separate debug info on objcopy when -# cross-compiling as lots of toolchains seems to have problems with this -if [ "$QT_CROSS_COMPILE" = "yes" ] && [ "$CFG_SEPARATE_DEBUG_INFO" = "auto" ]; then - CFG_SEPARATE_DEBUG_INFO="no" -fi - # auto-detect support for separate debug info in objcopy if [ "$CFG_SEPARATE_DEBUG_INFO" != "no" ] && [ "$CFG_SHARED" = "yes" ]; then TEST_COMPILER_CFLAGS=`getXQMakeConf QMAKE_CFLAGS` @@ -2897,20 +2891,12 @@ if [ "$OPT_HELP" = "yes" ]; then DBN=" " fi - if [ "$CFG_SEPARATE_DEBUG_INFO" = "auto" ]; then - if [ "$QT_CROSS_COMPILE" = "yes" ]; then - SBY="" - SBN="*" - else - SBY="*" - SBN=" " - fi - elif [ "$CFG_SEPARATE_DEBUG_INFO" = "yes" ]; then - SBY="*" - SBN=" " - else + if [ "$CFG_SEPARATE_DEBUG_INFO" = "no" ]; then SBY=" " SBN="*" + else + SBY="*" + SBN=" " fi if [ "$CFG_GLIB" = "no" ]; then -- cgit v1.2.3