about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-05-30 09:50:40 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-30 09:50:40 +0000
commit4da0431d5f4d9c88d476d1209849ff5344345021 (patch)
tree04ccc72400841a9616e3f65f453ae787806c631b /configure.in
parent865eac65c273840fdd8dcd159b7c3c03be78433d (diff)
downloadglibc-4da0431d5f4d9c88d476d1209849ff5344345021.tar.gz
glibc-4da0431d5f4d9c88d476d1209849ff5344345021.tar.xz
glibc-4da0431d5f4d9c88d476d1209849ff5344345021.zip
Weaken PIE configure test to a compile test.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in14
1 files changed, 2 insertions, 12 deletions
diff --git a/configure.in b/configure.in
index 6fac0855e3..81b14c9de7 100644
--- a/configure.in
+++ b/configure.in
@@ -1618,18 +1618,8 @@ rm -f conftest*])
 AC_SUBST(libc_cv_z_execstack)
 
 AC_CACHE_CHECK(for -fpie, libc_cv_fpie, [dnl
-cat > conftest.c <<EOF
-int foo;
-main () { return 0;}
-EOF
-if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
-			    -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD])
-then
-  libc_cv_fpie=yes
-else
-  libc_cv_fpie=no
-fi
-rm -f conftest*])
+LIBC_TRY_CC_OPTION([-fpie], [libc_cv_fpie=yes], [libc_cv_fpie=no])
+])
 
 AC_SUBST(libc_cv_fpie)