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 <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Donald Carr 2012-03-30 18:20:34 +00:00 committed by Qt by Nokia
parent bd833786a8
commit ccdc98cfd8

22
configure vendored
View File

@ -2563,12 +2563,6 @@ if [ "$BUILD_ON_MAC" = "yes" ] && [ "$CFG_MAC_DWARF2" = "auto" ]; then
fi fi
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 # auto-detect support for separate debug info in objcopy
if [ "$CFG_SEPARATE_DEBUG_INFO" != "no" ] && [ "$CFG_SHARED" = "yes" ]; then if [ "$CFG_SEPARATE_DEBUG_INFO" != "no" ] && [ "$CFG_SHARED" = "yes" ]; then
TEST_COMPILER_CFLAGS=`getXQMakeConf QMAKE_CFLAGS` TEST_COMPILER_CFLAGS=`getXQMakeConf QMAKE_CFLAGS`
@ -2897,20 +2891,12 @@ if [ "$OPT_HELP" = "yes" ]; then
DBN=" " DBN=" "
fi fi
if [ "$CFG_SEPARATE_DEBUG_INFO" = "auto" ]; then if [ "$CFG_SEPARATE_DEBUG_INFO" = "no" ]; then
if [ "$QT_CROSS_COMPILE" = "yes" ]; then
SBY=""
SBN="*"
else
SBY="*"
SBN=" "
fi
elif [ "$CFG_SEPARATE_DEBUG_INFO" = "yes" ]; then
SBY="*"
SBN=" "
else
SBY=" " SBY=" "
SBN="*" SBN="*"
else
SBY="*"
SBN=" "
fi fi
if [ "$CFG_GLIB" = "no" ]; then if [ "$CFG_GLIB" = "no" ]; then