diff options
author | Kevin F. Quinn <kevquinn@gentoo.org> | 2014-09-09 17:41:57 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-08-05 06:44:55 -0400 |
commit | ebe01981adb3d4baf60da2623b031db97498eb18 (patch) | |
tree | 9186acc8809101abae3f2d2c283e5f4d55eba714 | |
parent | 8175e9150a768a1eb135347bdb40b8161cb872dc (diff) | |
download | glibc-ebe01981adb3d4baf60da2623b031db97498eb18.tar glibc-ebe01981adb3d4baf60da2623b031db97498eb18.tar.gz glibc-ebe01981adb3d4baf60da2623b031db97498eb18.tar.bz2 glibc-ebe01981adb3d4baf60da2623b031db97498eb18.zip |
disable PIE when checking for PIC default
When the compiler builds PIEs by default, the configure PIC check is
confused into thinking PIC code is default. The end result is that
we end up with only PIC being produced.
Run the configure check with -fno-PIE so that we produce PIC & non-PIC
(PIE) objects like normal.
2014-09-09 Kevin F. Quinn <kevquinn@gentoo.org>
* configure.ac (libc_cv_pic_default): Pass -fno-PIE.
* configure: Regenerated.
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.ac | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -7309,7 +7309,7 @@ cat > conftest.c <<EOF # error PIC is default. #endif EOF -if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then +if eval "${CC-cc} -fno-PIE -S conftest.c 2>&5 1>&5"; then libc_cv_pic_default=no fi rm -f conftest.* diff --git a/configure.ac b/configure.ac index 7e9383a7f0..ab3920b51e 100644 --- a/configure.ac +++ b/configure.ac @@ -2069,7 +2069,7 @@ cat > conftest.c <<EOF # error PIC is default. #endif EOF -if eval "${CC-cc} -S conftest.c 2>&AS_MESSAGE_LOG_FD 1>&AS_MESSAGE_LOG_FD"; then +if eval "${CC-cc} -fno-PIE -S conftest.c 2>&AS_MESSAGE_LOG_FD 1>&AS_MESSAGE_LOG_FD"; then libc_cv_pic_default=no fi rm -f conftest.*]) |