m4: Fix check for -fvisibility=hidden for Clang

This commit is contained in:
Sebastian Pipping 2019-01-26 18:35:37 +01:00
parent 8a95a28658
commit c69657f8fd
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 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) {}