Commit e2c104d8 by Benjamin Kosnik Committed by Benjamin Kosnik

re PR libstdc++/26497 (libstdc++-v3: configure: test: -lt: unary operator expected)


2006-12-12  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/26497
	* crossconfig.m4: Add GLIBCXX_CHECK_LINKER_FEATURES for Solaris.
	* acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Set
	glibcxx_gnu_ld_version only when with GNU ld confirmed.	
	* configure: Regenerate.

From-SVN: r119778
parent 8e3dc7a3
2006-12-12 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/26497
* crossconfig.m4: Add GLIBCXX_CHECK_LINKER_FEATURES for Solaris.
* acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Set
glibcxx_gnu_ld_version only when with GNU ld confirmed.
* configure: Regenerate.
2006-12-11 Benjamin Kosnik <bkoz@redhat.com> 2006-12-11 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/28125 PR libstdc++/28125
......
...@@ -231,14 +231,16 @@ AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES], [ ...@@ -231,14 +231,16 @@ AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES], [
# Start by getting the version number. I think the libtool test already # Start by getting the version number. I think the libtool test already
# does some of this, but throws away the result. # does some of this, but throws away the result.
AC_MSG_CHECKING([for ld version]) if test x"$with_gnu_ld" = x"yes"; then
changequote(,) AC_MSG_CHECKING([for ld version])
ldver=`$LD --version 2>/dev/null | head -1 | \ changequote(,)
sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` ldver=`$LD --version 2>/dev/null | head -1 | \
changequote([,]) sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
glibcxx_gnu_ld_version=`echo $ldver | \ changequote([,])
$AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'` glibcxx_gnu_ld_version=`echo $ldver | \
AC_MSG_RESULT($glibcxx_gnu_ld_version) $AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`
AC_MSG_RESULT($glibcxx_gnu_ld_version)
fi
# Set --gc-sections. # Set --gc-sections.
glibcxx_gcsections_min_ld=21602 glibcxx_gcsections_min_ld=21602
......
...@@ -254,6 +254,7 @@ case "${host}" in ...@@ -254,6 +254,7 @@ case "${host}" in
# os_include_dir="os/solaris/solaris2.6" # os_include_dir="os/solaris/solaris2.6"
# ;; # ;;
*-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10) *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
GLIBCXX_CHECK_LINKER_FEATURES
AC_DEFINE(HAVE_GETPAGESIZE) AC_DEFINE(HAVE_GETPAGESIZE)
AC_DEFINE(HAVE_SIGSETJMP) AC_DEFINE(HAVE_SIGSETJMP)
AC_DEFINE(HAVE_MBSTATE_T) AC_DEFINE(HAVE_MBSTATE_T)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment