diff options
| author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-06 18:29:39 +0000 |
|---|---|---|
| committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-06 18:29:39 +0000 |
| commit | ecaf5e86b5d603a8edd3199839458dd3977d1a25 (patch) | |
| tree | 9098670ffad97d6db29076d12e8df8a67eb55610 | |
| parent | b750ed6e3b6d076487ca9e666c6d2ae3c932eff7 (diff) | |
| download | ppe42-gcc-ecaf5e86b5d603a8edd3199839458dd3977d1a25.tar.gz ppe42-gcc-ecaf5e86b5d603a8edd3199839458dd3977d1a25.zip | |
PR other/45915
* configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
--version output if supported.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168546 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 7 | ||||
| -rwxr-xr-x | gcc/configure | 1 | ||||
| -rw-r--r-- | gcc/configure.ac | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 35498f06576..539684e0f29 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + PR other/45915 + * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd + --version output if supported. + * configure: Regenerate. + 2011-01-06 Joseph Myers <joseph@codesourcery.com> * config/linux-android.opt (tno-android-cc, tno-android-ld): New diff --git a/gcc/configure b/gcc/configure index 1c95830d58c..d1a68a84370 100755 --- a/gcc/configure +++ b/gcc/configure @@ -25207,6 +25207,7 @@ $as_echo "$gcc_cv_as_gnu_unique_object" >&6; } if test $gcc_cv_as_gnu_unique_object = yes; then # Also check for ld.so support, i.e. glibc 2.11 or higher. if test x$host = x$build -a x$host = x$target && + ldd --version 2>/dev/null && glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then glibcmajor=`expr "$glibcver" : "\([0-9]*\)"` glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"` diff --git a/gcc/configure.ac b/gcc/configure.ac index ad8d008837b..4e7ace487a7 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to generate a configuration script. # Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, -# 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. #This file is part of GCC. @@ -3885,6 +3885,7 @@ Valid choices are 'yes' and 'no'.]) ;; [.type foo, @gnu_unique_object],, # Also check for ld.so support, i.e. glibc 2.11 or higher. [[if test x$host = x$build -a x$host = x$target && + ldd --version 2>/dev/null && glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then glibcmajor=`expr "$glibcver" : "\([0-9]*\)"` glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"` |

