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/gitweb.cgi?a=commitdiff_plain;h=ebe01981adb3d4baf60da2623b031db97498eb18;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 45cc7cba2bf..f714fce7874 100755 --- a/configure +++ b/configure @@ -7309,7 +7309,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 7e9383a7f0b..ab3920b51e2 100644 --- a/configure.ac +++ b/configure.ac @@ -2069,7 +2069,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.*])