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.in | |
parent | a6928d5102a89f152fe9d17abb26346dc8cefc9c (diff) | |
download | glibc-5c55070081c27168d27145afdf6a92cd56c9abb3.zip glibc-5c55070081c27168d27145afdf6a92cd56c9abb3.tar.gz glibc-5c55070081c27168d27145afdf6a92cd56c9abb3.tar.bz2 |
Use linker --print-output-format option if available.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 55e5649..a28cd70 100644 --- a/configure.in +++ b/configure.in @@ -1803,6 +1803,17 @@ EOF AC_SUBST(libc_cv_hashstyle) fi +AC_CACHE_CHECK(linker output format, libc_cv_output_format, [dnl +if libc_cv_output_format=` +${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&AS_MESSAGE_LOG_FD` +then + : +else + libc_cv_output_format= +fi +test -n "$libc_cv_output_format" || libc_cv_output_format=unknown]) +AC_SUBST(libc_cv_output_format) + AC_CACHE_CHECK(for -fno-toplevel-reorder -fno-section-anchors, libc_cv_fno_toplevel_reorder, [dnl cat > conftest.c <<EOF int foo; |