mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-15 21:01:09 +08:00
acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Verbose ld version reporting.
2006-01-20 Benjamin Kosnik <bkoz@redhat.com> * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Verbose ld version reporting. Disable --gc-sections for old binutils, by version. * configure: Regenerate. From-SVN: r110045
This commit is contained in:
parent
72e9337dd6
commit
ac2b2479e8
@ -1,3 +1,9 @@
|
||||
2006-01-20 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Verbose ld version
|
||||
reporting. Disable --gc-sections for old binutils, by version.
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-01-20 Joseph S. Myers <joseph@codesourcery.com>
|
||||
|
||||
PR libstdc++/25524
|
||||
|
@ -222,16 +222,23 @@ AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES], [
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
AC_MSG_CHECKING([for ld version])
|
||||
changequote(,)
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
changequote([,])
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`
|
||||
AC_MSG_RESULT($glibcxx_gnu_ld_version)
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
|
130
libstdc++-v3/configure
vendored
130
libstdc++-v3/configure
vendored
@ -8200,16 +8200,25 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
@ -53058,16 +53067,25 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
@ -74409,16 +74427,25 @@ done
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
@ -75923,16 +75950,25 @@ done
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
@ -77313,16 +77349,25 @@ done
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
@ -79490,16 +79535,25 @@ done
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
@ -80833,16 +80887,25 @@ done
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
@ -82225,16 +82288,25 @@ done
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
@ -84009,16 +84081,25 @@ echo "${ECHO_T}$glibcxx_cv_WRITEV" >&6
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
@ -86114,16 +86195,25 @@ done
|
||||
|
||||
# Start by getting the version number. I think the libtool test already
|
||||
# does some of this, but throws away the result.
|
||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
||||
|
||||
ldver=`$LD --version 2>/dev/null | head -1 | \
|
||||
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
|
||||
|
||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
||||
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
|
||||
echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
|
||||
echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
|
||||
|
||||
# Set --gc-sections.
|
||||
if test x"$with_gnu_ld" = x"yes"; then
|
||||
# GNU ld it is! Joy and bunny rabbits!
|
||||
glibcxx_gcsections_min_ld=21602
|
||||
if test x"$with_gnu_ld" = x"yes" &&
|
||||
test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
|
||||
|
||||
# Sufficiently young GNU ld it is! Joy and bunny rabbits!
|
||||
# NB: This flag only works reliably after 2.16.1. Configure tests
|
||||
# for this are difficult, so hard wire a value that should work.
|
||||
|
||||
# All these tests are for C++, but run with the "C" compiler driver.
|
||||
# Need to do this so that g++ won't try to link in libstdc++/libsupc++.
|
||||
|
Loading…
x
Reference in New Issue
Block a user