Skip to content

Commit

Permalink
Merge pull request libffi#461 from NativeScript/bektchiev/fix-visibil…
Browse files Browse the repository at this point in the history
…ity-hidden-check-in-configure

fix(configure): Correctly detect visibility("hidden") support on Darwin
  • Loading branch information
tromey committed Dec 19, 2018
2 parents 737d4fa + 2c5b164 commit 8fa8837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -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
Expand Down

0 comments on commit 8fa8837

Please sign in to comment.