aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2008-12-16 13:09:57 +0000
committerRainer Orth <ro@gcc.gnu.org>2008-12-16 13:09:57 +0000
commit5e87dc23ef6a5d3b1f1dd9169c3dc1e045c75850 (patch)
treed9995bcd168d6cbdc37b75b776f9bc2ee986148c
parent01577df7793e949ed8d31cb18c931fbbe7ef00d0 (diff)
downloadgcc-5e87dc23ef6a5d3b1f1dd9169c3dc1e045c75850.zip
gcc-5e87dc23ef6a5d3b1f1dd9169c3dc1e045c75850.tar.gz
gcc-5e87dc23ef6a5d3b1f1dd9169c3dc1e045c75850.tar.bz2
configure.ac (gcc_cv_ld_hidden): Sun ld on Solaris 9 and up supports hidden.
* configure.ac (gcc_cv_ld_hidden): Sun ld on Solaris 9 and up supports hidden. * configure: Regenerate. From-SVN: r142779
-rw-r--r--gcc/ChangeLog6
-rwxr-xr-xgcc/configure3
-rw-r--r--gcc/configure.ac7
3 files changed, 14 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c941cd2..e0b8726 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * configure.ac (gcc_cv_ld_hidden): Sun ld on Solaris 9 and up
+ supports hidden.
+ * configure: Regenerate.
+
2008-12-16 Richard Earnshaw <rearnsha@arm.com>
PR target/37436
diff --git a/gcc/configure b/gcc/configure
index 9da1269..20a4b8a 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -21394,6 +21394,9 @@ else
hppa64*-*-hpux* | ia64*-*-hpux*)
gcc_cv_ld_hidden=yes
;;
+ *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
+ gcc_cv_ld_hidden=yes
+ ;;
*)
gcc_cv_ld_hidden=no
;;
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 559332f..0ec9aa8 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -2104,10 +2104,10 @@ AC_CACHE_CHECK(linker for .hidden support, gcc_cv_ld_hidden,
gcc_cv_ld_hidden=yes
fi
else
+changequote(,)dnl
gcc_cv_ld_hidden=yes
ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
if echo "$ld_ver" | grep GNU > /dev/null; then
-changequote(,)dnl
ld_vers=`echo $ld_ver | sed -n \
-e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
@@ -2131,18 +2131,21 @@ changequote(,)dnl
gcc_cv_ld_hidden=no
fi
fi
-changequote([,])dnl
fi
else
case "${target}" in
hppa64*-*-hpux* | ia64*-*-hpux*)
gcc_cv_ld_hidden=yes
;;
+ *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
+ gcc_cv_ld_hidden=yes
+ ;;
*)
gcc_cv_ld_hidden=no
;;
esac
fi
+changequote([,])dnl
fi])
libgcc_visibility=no
AC_SUBST(libgcc_visibility)