]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
disable PIE when checking for PIC default
authorKevin F. Quinn <kevquinn@gentoo.org>
Tue, 9 Sep 2014 21:41:57 +0000 (17:41 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Sep 2014 21:41:57 +0000 (17:41 -0400)
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.

configure
configure.ac

index 86ba30774bcdf00a4528a784cda2f62172eb6d18..5e7e8c35af5f9b767cdca2800298344c43045844 100755 (executable)
--- a/configure
+++ b/configure
@@ -7156,7 +7156,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.*
index 255339983a014922ed21e3b34c784354c01de5f9..e4f99b559a5ee0317d234b7b3282b61601014501 100644 (file)
@@ -2019,7 +2019,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.*])