11 cat >>fvisibility.c
<< EOF
14 # error "GCC3 with backported visibility patch is known to miscompile Qt"
16 __attribute((visibility("default"))) void blah();
17 #elif defined(__SUNPRO_CC)
18 # if (__SUNPRO_CC < 0x0550)
19 # error "SunStudio 8 or later is required for ELF visibility"
23 # error "GCC4+ or SunStudio 8+ are required to support ELF visibility"
27 if [ "$VERBOSE" = "yes" ] ; then
28 "$COMPILER" -c $CMDLINE fvisibility.c
&& FVISIBILITY_SUPPORT
=yes
30 "$COMPILER" -c $CMDLINE fvisibility.c
>/dev
/null
2>&1 && FVISIBILITY_SUPPORT
=yes
32 rm -f fvisibility.c fvisibility.o
38 CMDLINE
="-fvisibility=hidden"
46 ICPC_VERSION
=`icpc -dumpversion`
47 case "$ICPC_VERSION" in
49 # 8.x, 9.x, and 10.0 don't support symbol visibility
52 # the compile test works for the intel compiler because it mimics gcc's behavior
53 CMDLINE
="-fvisibility=hidden"
60 # This should be SunStudio. If not, it'll get caught.
61 CMDLINE
="-xldscope=hidden"
67 if [ "$FVISIBILITY_SUPPORT" != "yes" ]; then
68 [ "$VERBOSE" = "yes" ] && echo "Symbol visibility control disabled."
71 [ "$VERBOSE" = "yes" ] && echo "Symbol visibility control enabled."