mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 05:55:04 -05:00
Add icc fvisibility bug test
This commit is contained in:
parent
09526fc9e9
commit
69ac7b0cf8
@ -16,7 +16,7 @@
|
|||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
# File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 61
|
# serial 63
|
||||||
|
|
||||||
|
|
||||||
dnl CARES_CHECK_COMPILER
|
dnl CARES_CHECK_COMPILER
|
||||||
@ -1340,9 +1340,20 @@ AC_DEFUN([CARES_CHECK_COMPILER_SYMBOL_HIDING], [
|
|||||||
dnl Only icc 9.0 or later
|
dnl Only icc 9.0 or later
|
||||||
if test "$compiler_num" -ge "900"; then
|
if test "$compiler_num" -ge "900"; then
|
||||||
if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
|
if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
|
||||||
tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
|
tmp_save_CFLAGS="$CFLAGS"
|
||||||
tmp_CFLAGS="-fvisibility=hidden"
|
CFLAGS="$CFLAGS -fvisibility=hidden"
|
||||||
supports_symbol_hiding="yes"
|
AC_LINK_IFELSE([
|
||||||
|
AC_LANG_PROGRAM([[
|
||||||
|
# include <stdio.h>
|
||||||
|
]],[[
|
||||||
|
printf("icc fvisibility bug test");
|
||||||
|
]])
|
||||||
|
],[
|
||||||
|
tmp_EXTERN="__attribute__ ((visibility (\"default\")))"
|
||||||
|
tmp_CFLAGS="-fvisibility=hidden"
|
||||||
|
supports_symbol_hiding="yes"
|
||||||
|
])
|
||||||
|
CFLAGS="$tmp_save_CFLAGS"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user