diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-09-24 08:33:01 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-09-24 08:33:01 +0000 |
commit | c9c60884afdfe24eceb42a59b83240e4b04a4e13 (patch) | |
tree | a331916ffff59e875544b994edce735f40d0afb4 /configure.in | |
parent | df244a7b4dc2429e5db8f5bded0d9b9c9631285b (diff) | |
download | glibc-c9c60884afdfe24eceb42a59b83240e4b04a4e13.zip glibc-c9c60884afdfe24eceb42a59b83240e4b04a4e13.tar.gz glibc-c9c60884afdfe24eceb42a59b83240e4b04a4e13.tar.bz2 |
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.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in index c3f4adb..50e18eb 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 |