aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2011-01-14 17:00:24 +0000
committerRainer Orth <ro@gcc.gnu.org>2011-01-14 17:00:24 +0000
commitbb127cd84ba16c439cf3d5783f5e112cdfb4693b (patch)
treec3a359bc855f943ba6dab4cf5082baac7e470002
parent89a012ea9ee40a4169447fb2919eb77c89f47039 (diff)
downloadgcc-bb127cd84ba16c439cf3d5783f5e112cdfb4693b.zip
gcc-bb127cd84ba16c439cf3d5783f5e112cdfb4693b.tar.gz
gcc-bb127cd84ba16c439cf3d5783f5e112cdfb4693b.tar.bz2
configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always supports -Bstatic/-Bdynamic.
* configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always supports -Bstatic/-Bdynamic. * configure: Regenerate. From-SVN: r168795
-rw-r--r--gcc/ChangeLog6
-rwxr-xr-xgcc/configure31
-rw-r--r--gcc/configure.ac17
3 files changed, 37 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4d5d5ae..e442407 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
+ supports -Bstatic/-Bdynamic.
+ * configure: Regenerate.
+
2011-01-14 Jan Hubicka <jh@suse.cz>
Jack Howarth <howarth@bromo.med.uc.edu>
diff --git a/gcc/configure b/gcc/configure
index 46c5285..7a3e1e1 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -23056,11 +23056,18 @@ if test $in_tree_ld = yes ; then
gcc_cv_ld_static_dynamic=yes
fi
elif test x$gcc_cv_ld != x; then
- # Check if linker supports -Bstatic/-Bdynamic option
- if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
- && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
- gcc_cv_ld_static_dynamic=yes
- fi
+ # Check if linker supports -Bstatic/-Bdynamic option
+ if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
+ && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
+ gcc_cv_ld_static_dynamic=yes
+ else
+ case "$target" in
+ # Solaris 2 ld always supports -Bstatic/-Bdynamic.
+ *-*-solaris2*)
+ gcc_cv_ld_static_dynamic=yes
+ ;;
+ esac
+ fi
fi
if test x"$gcc_cv_ld_static_dynamic" = xyes; then
@@ -23093,10 +23100,10 @@ $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
$as_echo "$gcc_cv_ld_demangle" >&6; }
fi
-if test -f ../lto-plugin/Makefile ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
$as_echo_n "checking linker plugin support... " >&6; }
- gcc_cv_lto_plugin=no
+gcc_cv_lto_plugin=no
+if test -f ../lto-plugin/Makefile ; then
if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET=" = x"$gcc_cv_ld"; then
if test x"$ld_is_gold" = xyes; then
gcc_cv_lto_plugin=yes
@@ -23107,14 +23114,14 @@ $as_echo_n "checking linker plugin support... " >&6; }
elif $ORIGINAL_PLUGIN_LD_FOR_TARGET --help 2>/dev/null | grep plugin-opt > /dev/null; then
gcc_cv_lto_plugin=yes
fi
- if test x"$gcc_cv_lto_plugin" = xyes; then
+fi
+if test x"$gcc_cv_lto_plugin" = xyes; then
$as_echo "#define HAVE_LTO_PLUGIN 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
-$as_echo "$gcc_cv_lto_plugin" >&6; }
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
+$as_echo "$gcc_cv_lto_plugin" >&6; }
case "$target" in
# All TARGET_ABI_OSF targets.
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 776c71f..77af4a14 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3117,11 +3117,18 @@ if test $in_tree_ld = yes ; then
gcc_cv_ld_static_dynamic=yes
fi
elif test x$gcc_cv_ld != x; then
- # Check if linker supports -Bstatic/-Bdynamic option
- if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
- && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
- gcc_cv_ld_static_dynamic=yes
- fi
+ # Check if linker supports -Bstatic/-Bdynamic option
+ if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
+ && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
+ gcc_cv_ld_static_dynamic=yes
+ else
+ case "$target" in
+ # Solaris 2 ld always supports -Bstatic/-Bdynamic.
+ *-*-solaris2*)
+ gcc_cv_ld_static_dynamic=yes
+ ;;
+ esac
+ fi
fi
if test x"$gcc_cv_ld_static_dynamic" = xyes; then
AC_DEFINE(HAVE_LD_STATIC_DYNAMIC, 1,