summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-06-26 12:22:04 (GMT)
committeraxis <qt-info@nokia.com>2009-10-23 09:25:54 (GMT)
commit1ca27669332b5e19284297b0bbc57700f59fed33 (patch)
treed9248b162559d49130f299cb1cf5b27343b2e874 /configure
parent0efd55694cc8fb080c67056ad132933f8329616e (diff)
downloadQt-1ca27669332b5e19284297b0bbc57700f59fed33.zip
Qt-1ca27669332b5e19284297b0bbc57700f59fed33.tar.gz
Qt-1ca27669332b5e19284297b0bbc57700f59fed33.tar.bz2
Modify visibility test to support armcc as well.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index a3c8cba..d197ad3 100755
--- a/configure
+++ b/configure
@@ -2893,6 +2893,10 @@ QMAKE_CONF_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" |
TEST_COMPILER="$CC"
[ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER
+QMAKE_CONF_HIDESYMS=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CFLAGS_HIDESYMS" | sed "s,.* *= *\(.*\)$,\1," | tail -1`
+TEST_HIDESYMS=$QMAKE_CONF_HIDESYMS
+[ -z "$TEST_HIDESYMS" ] && TEST_HIDESYMS="-fvisibility=hidden"
+
# auto-detect precompiled header support
if [ "$CFG_PRECOMPILE" = "auto" ]; then
if [ `echo "$CFG_MAC_ARCHS" | wc -w` -gt 1 ]; then
@@ -2957,7 +2961,7 @@ fi
# auto-detect -fvisibility support
if [ "$CFG_REDUCE_EXPORTS" = "auto" ]; then
- if "$unixtests/fvisibility.test" "$TEST_COMPILER" "$OPT_VERBOSE"; then
+ if "$unixtests/fvisibility.test" "$TEST_COMPILER" "$TEST_HIDESYMS" "$OPT_VERBOSE"; then
CFG_REDUCE_EXPORTS=no
else
CFG_REDUCE_EXPORTS=yes