4
XPLATFORM=`basename $1`
8
cat >>fvisibility.c << EOF
9
__attribute__((visibility("default"))) void blah();
10
#if defined(__GNUC__) && __GNUC__ < 4
11
#error GCC3 with backported visibility patch is known to miscompile Qt
15
COMPILER=`grep QMAKE_CC $XCONFIG | sed "s,.*= *,,"`
16
$COMPILER -c -fvisibility=hidden fvisibility.c >/dev/null 2>&1 && FVISIBILITY_SUPPORT=yes
17
rm -f fvisibility.c fvisibility.o
20
if [ "$FVISIBILITY_SUPPORT" != "yes" ]; then
21
[ "$VERBOSE" = "yes" ] && echo "-fvisibility support disabled."
24
[ "$VERBOSE" = "yes" ] && echo "-fvisibility support enabled."