configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always supports -Bstatic/-Bdynamic.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 14 Jan 2011 17:00:24 +0000 (17:00 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 14 Jan 2011 17:00:24 +0000 (17:00 +0000)
* configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
supports -Bstatic/-Bdynamic.
* configure: Regenerate.

From-SVN: r168795

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 4d5d5aecad0bda84574195fb54ac3c9a1c3122b8..e4424071dff50ae25a0d02e379cca60557bc6aea 100644 (file)
@@ -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>
 
index 46c52854dfc4d9e73502f565e9882e147b4ac606..7a3e1e1d587f1c33bed243a2185fd39ea4276d07 100755 (executable)
@@ -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.
index 776c71fa3c3a214a5c79ae7536ae4303a5a248e7..77af4a14abe576a9b508631c47d44b1da5fccca1 100644 (file)
@@ -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,