diff options
author | Martin Bektchiev <martin.bektchiev@progress.com> | 2018-12-19 18:33:08 +0200 |
---|---|---|
committer | Martin Bektchiev <martin.bektchiev@progress.com> | 2018-12-19 18:36:25 +0200 |
commit | 2c5b164288712cc048048d73a3cd841d845a132c (patch) | |
tree | a8eec9d30331d5337507e7c20b17cbd2411b540c /configure.ac | |
parent | 737d4faa00d681b4c758057f67e1a02d813d01c2 (diff) | |
download | libffi-2c5b164288712cc048048d73a3cd841d845a132c.tar.gz |
fix(configure): Correctly detect visibility("hidden") support on Darwin
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 27676b0..055fe18 100644 --- a/configure.ac +++ b/configure.ac @@ -270,7 +270,7 @@ if test "x$GCC" = "xyes"; then echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c libffi_cv_hidden_visibility_attribute=no if AC_TRY_COMMAND(${CC-cc} -Werror -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then - if grep '\.hidden.*foo' conftest.s >/dev/null; then + if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then libffi_cv_hidden_visibility_attribute=yes fi fi |