8 cat >>fvisibility.c
<< EOF
9 __attribute__((visibility("default"))) void blah();
10 #if !defined(__GNUC__)
11 # error "Visiblility support requires GCC"
13 # error "GCC3 with backported visibility patch is known to miscompile Qt"
17 if [ "$VERBOSE" = "yes" ] ; then
18 "$COMPILER" -c -fvisibility=hidden fvisibility.c
&& FVISIBILITY_SUPPORT
=yes
20 "$COMPILER" -c -fvisibility=hidden fvisibility.c
>/dev
/null
2>&1 && FVISIBILITY_SUPPORT
=yes
22 rm -f fvisibility.c fvisibility.o
30 ICPC_VERSION
=`icpc -dumpversion`
31 case "$ICPC_VERSION" in
33 # 8.x, 9.x, and 10.0 don't support symbol visibility
36 # the compile test works for the intel compiler because it mimics gcc's behavior
48 if [ "$FVISIBILITY_SUPPORT" != "yes" ]; then
49 [ "$VERBOSE" = "yes" ] && echo "Symbol visibility control disabled."
52 [ "$VERBOSE" = "yes" ] && echo "Symbol visibility control enabled."