diff options
author | Ian Lance Taylor <iant@google.com> | 2009-01-31 17:09:24 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2009-01-31 17:09:24 +0000 |
commit | b39dea08d9057f4e76e62e9ef58686da4deb67d9 (patch) | |
tree | 51c3ac58889ec103b190859ab0fe78f9f9140a34 /libgomp/configure | |
parent | 14c28276e0f55bf6a3aeea783db18c747794867c (diff) | |
download | gcc-b39dea08d9057f4e76e62e9ef58686da4deb67d9.zip gcc-b39dea08d9057f4e76e62e9ef58686da4deb67d9.tar.gz gcc-b39dea08d9057f4e76e62e9ef58686da4deb67d9.tar.bz2 |
acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set libgomp_ld_is_gold.
* acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
libgomp_ld_is_gold. Get gold version number.
(LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
* configure: Rebuild.
From-SVN: r143822
Diffstat (limited to 'libgomp/configure')
-rwxr-xr-x | libgomp/configure | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libgomp/configure b/libgomp/configure index 432543b..948fd3e 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -18481,9 +18481,13 @@ with_gnu_ld=$lt_cv_prog_gnu_ld # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. + libgomp_ld_is_gold=no + if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then + libgomp_ld_is_gold=yes + fi ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` libgomp_gnu_ld_version=`echo $ldver | \ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` @@ -18725,6 +18729,8 @@ if test $enable_symvers = yes; then then if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then enable_symvers=gnu + elif test $libgomp_ld_is_gold = yes ; then + enable_symvers=gnu else # The right tools, the right setup, but too old. Fallbacks? { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 |