diff options
author | Roland McGrath <roland@hack.frob.com> | 2011-06-11 00:45:12 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2011-07-14 20:50:17 -0700 |
commit | 5c55070081c27168d27145afdf6a92cd56c9abb3 (patch) | |
tree | 07be43c6115f3d97746612a57c8fda82031d45a5 /configure | |
parent | a6928d5102a89f152fe9d17abb26346dc8cefc9c (diff) | |
download | glibc-5c55070081c27168d27145afdf6a92cd56c9abb3.tar.gz |
Use linker --print-output-format option if available.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -647,6 +647,7 @@ libc_cv_have_initfini gnu89_inline libc_cv_ssp fno_unit_at_a_time +libc_cv_output_format libc_cv_hashstyle libc_cv_fpie libc_cv_z_execstack @@ -6703,6 +6704,24 @@ $as_echo "$libc_cv_hashstyle" >&6; } fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5 +$as_echo_n "checking linker output format... " >&6; } +if ${libc_cv_output_format+:} false; then : + $as_echo_n "(cached) " >&6 +else + if libc_cv_output_format=` +${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5` +then + : +else + libc_cv_output_format= +fi +test -n "$libc_cv_output_format" || libc_cv_output_format=unknown +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5 +$as_echo "$libc_cv_output_format" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; } if ${libc_cv_fno_toplevel_reorder+:} false; then : |