aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-24 08:33:01 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-24 08:33:01 +0000
commitc9c60884afdfe24eceb42a59b83240e4b04a4e13 (patch)
treea331916ffff59e875544b994edce735f40d0afb4 /configure.in
parentdf244a7b4dc2429e5db8f5bded0d9b9c9631285b (diff)
downloadglibc-c9c60884afdfe24eceb42a59b83240e4b04a4e13.tar
glibc-c9c60884afdfe24eceb42a59b83240e4b04a4e13.tar.gz
glibc-c9c60884afdfe24eceb42a59b83240e4b04a4e13.tar.bz2
glibc-c9c60884afdfe24eceb42a59b83240e4b04a4e13.zip
Update.
2003-09-24 Ulrich Drepper <drepper@redhat.com> * configure.in: Check for -fpie and -pie compiler options. * config.make.in (have-fpie): Define. * sysdeps/unix/sysv/linux/alpha/sys/sysmacros.h: Removed. * sysdeps/unix/sysv/linux/sparc/sys/sysmacros.h: Removed.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
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