about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 2 insertions, 15 deletions
diff --git a/configure.in b/configure.in
index 2ec07b1e43..55c46ade92 100644
--- a/configure.in
+++ b/configure.in
@@ -1561,21 +1561,8 @@ LIBC_LINKER_FEATURE([-z execstack], [-Wl,-z,execstack],
 		    [libc_cv_z_execstack=yes], [libc_cv_z_execstack=no])
 AC_SUBST(libc_cv_z_execstack)
 
-AC_CACHE_CHECK(for -z global,
-	       libc_cv_z_global, [dnl
-cat > conftest.c <<EOF
-int _start (void) { return 42; }
-EOF
-if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
-			    -fPIC -shared -o conftest.so conftest.c
-			    -Wl,-z,global -nostdlib
-			    1>&AS_MESSAGE_LOG_FD])
-then
-  libc_cv_z_global=yes
-else
-  libc_cv_z_global=no
-fi
-rm -f conftest*])
+LIBC_LINKER_FEATURE([-z global], [-Wl,-z,global],
+		    [libc_cv_z_global=yes], [libc_cv_z_global=no])
 AC_SUBST(libc_cv_z_global)
 
 AC_CACHE_CHECK(for -fpie, libc_cv_fpie, [dnl