diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in index c3f4adb89d..50e18eb09a 100644 --- a/configure.in +++ b/configure.in @@ -1382,6 +1382,21 @@ EOF fi rm -f conftest*]) AC_SUBST(libc_cv_z_execstack) + + AC_CACHE_CHECK(for -fpie, libc_cv_fpie, [dnl + cat > conftest.c <<EOF +int foo; +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*]) + + AC_SUBST(libc_cv_fpie) fi if test $elf != yes; then |