From: Kevin F. Quinn Date: Tue, 9 Sep 2014 21:41:57 +0000 (-0400) Subject: disable PIE when checking for PIC default X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a9897ddc3f05aa3a52aeb35ea15530ef3584147;p=thirdparty%2Fglibc.git 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 * configure.ac (libc_cv_pic_default): Pass -fno-PIE. * configure: Regenerated. --- diff --git a/configure b/configure index 86ba30774bc..5e7e8c35af5 100755 --- a/configure +++ b/configure @@ -7156,7 +7156,7 @@ cat > conftest.c <&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 255339983a0..e4f99b559a5 100644 --- a/configure.ac +++ b/configure.ac @@ -2019,7 +2019,7 @@ cat > conftest.c <&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.*])