Unverified Commit 8fa88373 authored by Tom Tromey's avatar Tom Tromey Committed by GitHub
Browse files

Merge pull request #461 from NativeScript/bektchiev/fix-visibility-hidden-check-in-configure

fix(configure): Correctly detect visibility("hidden") support on Darwin
parents 737d4faa 2c5b1642
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment