diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-05-30 09:50:40 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-05-30 09:50:40 +0000 |
commit | 4da0431d5f4d9c88d476d1209849ff5344345021 (patch) | |
tree | 04ccc72400841a9616e3f65f453ae787806c631b /configure | |
parent | 865eac65c273840fdd8dcd159b7c3c03be78433d (diff) | |
download | glibc-4da0431d5f4d9c88d476d1209849ff5344345021.tar glibc-4da0431d5f4d9c88d476d1209849ff5344345021.tar.gz glibc-4da0431d5f4d9c88d476d1209849ff5344345021.tar.bz2 glibc-4da0431d5f4d9c88d476d1209849ff5344345021.zip |
Weaken PIE configure test to a compile test.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -6490,23 +6490,17 @@ $as_echo_n "checking for -fpie... " >&6; } if ${libc_cv_fpie+:} false; then : $as_echo_n "(cached) " >&6 else - cat > conftest.c <<EOF -int foo; -main () { return 0;} -EOF -if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie - -o conftest conftest.c 1>&5' + if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } -then + test $ac_status = 0; }; }; then : libc_cv_fpie=yes else libc_cv_fpie=no fi -rm -f conftest* + fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5 $as_echo "$libc_cv_fpie" >&6; } |