Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c5b164

Browse files
committed
fix(configure): Correctly detect visibility("hidden") support on Darwin
1 parent 737d4fa commit 2c5b164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ if test "x$GCC" = "xyes"; then
270270
echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
271271
libffi_cv_hidden_visibility_attribute=no
272272
if AC_TRY_COMMAND(${CC-cc} -Werror -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
273-
if grep '\.hidden.*foo' conftest.s >/dev/null; then
273+
if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then
274274
libffi_cv_hidden_visibility_attribute=yes
275275
fi
276276
fi

0 commit comments

Comments
 (0)