Merge branch 'issue-245-visibility-check' (fixes #245)

This commit is contained in:
Sebastian Pipping 2019-01-26 18:56:10 +01:00
commit 3826ac43e9
2 changed files with 3 additions and 1 deletions

View File

@ -11,9 +11,11 @@ Release x.x.x XXX XXXXXX XX XXXX
#227 Autotools: Add --without-examples and --without-tests
#228 Autotools: Modernize configure.ac
#243 Windows: Fix syntax of .def module definition files
#245 #246 Autotools: Fix check for -fvisibility=hidden for Clang
Special thanks to:
Benjamin Peterson
Hanno Böck
@KangLin
Marco Maggi
Sebastian Dröge

View File

@ -27,7 +27,7 @@ AC_DEFUN([EXPATCFG_COMPILER_SUPPORTS_VISIBILITY],
[expatcfg_cv_compiler_supports_visibility],
[AS_VAR_SET([expatcfg_cv_compiler_supports_visibility],[no])
AS_VAR_COPY([OLDFLAGS],[CFLAGS])
AS_VAR_APPEND([CFLAGS],[" -fvisibility=hidden -Wall -Werror"])
AS_VAR_APPEND([CFLAGS],[" -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
void __attribute__((visibility("default"))) foo(void);
void foo(void) {}