mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-11-23 22:06:48 +00:00
configure: fix symbol hiding usability check
A more thorough test is done now in order to determine visibility attribute usability, given that some compilers don't support visibility attribute on all configurations.
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
# File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 67
|
# serial 68
|
||||||
|
|
||||||
|
|
||||||
dnl CARES_CHECK_COMPILER
|
dnl CARES_CHECK_COMPILER
|
||||||
@ -1484,12 +1484,18 @@ AC_DEFUN([CARES_CHECK_COMPILER_SYMBOL_HIDING], [
|
|||||||
}
|
}
|
||||||
]],[[
|
]],[[
|
||||||
char b[16];
|
char b[16];
|
||||||
char *r = dummy(&b);
|
char *r = dummy(&b[0]);
|
||||||
if(r)
|
if(r)
|
||||||
return (int)*r;
|
return (int)*r;
|
||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
supports_symbol_hiding="yes"
|
supports_symbol_hiding="yes"
|
||||||
|
if test -f conftest.err; then
|
||||||
|
grep 'visibility' conftest.err >/dev/null
|
||||||
|
if test "$?" -eq "0"; then
|
||||||
|
supports_symbol_hiding="no"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
],[
|
],[
|
||||||
supports_symbol_hiding="no"
|
supports_symbol_hiding="no"
|
||||||
echo " " >&6
|
echo " " >&6
|
||||||
|
|||||||
Reference in New Issue
Block a user