diff options
author | Roland McGrath <roland@gnu.org> | 2006-01-30 22:41:14 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2006-01-30 22:41:14 +0000 |
commit | 18e2ac6dbbba2c85bfd7f841b6de586b51769a16 (patch) | |
tree | 59231b9ea56f913b800868482b1d537f6e2aeacc /configure.in | |
parent | 0ee38163e8824423f0b059d4675745223e91423b (diff) | |
download | glibc-18e2ac6dbbba2c85bfd7f841b6de586b51769a16.tar glibc-18e2ac6dbbba2c85bfd7f841b6de586b51769a16.tar.gz glibc-18e2ac6dbbba2c85bfd7f841b6de586b51769a16.tar.bz2 glibc-18e2ac6dbbba2c85bfd7f841b6de586b51769a16.zip |
2006-01-30 Alexandre Oliva <aoliva@redhat.com>
Roland McGrath <roland@redhat.com>
* configure.in (fno_unit_at_a_time): Set to
-fno-toplevel-reorder if the compiler supports it.
Otherwise use -fno-unit-at-a-time unconditionally.
* configure: Regenerated.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.in b/configure.in index b5d4e3ff4b..dfbf3f1420 100644 --- a/configure.in +++ b/configure.in @@ -1515,19 +1515,21 @@ EOF AC_SUBST(libc_cv_fpie) fi -AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl +AC_CACHE_CHECK(for -fno-toplevel-reorder, libc_cv_fno_toplevel_reorder, [dnl cat > conftest.c <<EOF int foo; EOF -if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time +if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder conftest.c 1>&AS_MESSAGE_LOG_FD]) then - libc_cv_fno_unit_at_a_time=yes + libc_cv_fno_toplevel_reorder=yes else - libc_cv_fno_unit_at_a_time=no + libc_cv_fno_toplevel_reorder=no fi rm -f conftest*]) -if test $libc_cv_fno_unit_at_a_time = yes; then +if test $libc_cv_fno_toplevel_reorder = yes; then + fno_unit_at_a_time=-fno-toplevel-reorder +else fno_unit_at_a_time=-fno-unit-at-a-time fi AC_SUBST(fno_unit_at_a_time) |