diff mbox

[build] Use -Bstatic/-Bdynamic on IRIX

Message ID yddr5bxfjtf.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth Jan. 28, 2011, 9:39 a.m. UTC
Just like the Sun linker, SGI ld support -Bstatic/-Bdynamic, which is
required to make -static-libstdc++ work.  Tested with a
--enable-languages=go bootstrap (which includes c++ and links go1
statically with libstdc++ if everything works), installed on mainline.

	Rainer


2011-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
	-Bstatic/-Bdynamic.
	* configure: Regenerate.

Comments

Paolo Bonzini Jan. 28, 2011, 12:35 p.m. UTC | #1
On 01/28/2011 10:39 AM, Rainer Orth wrote:
> Just like the Sun linker, SGI ld support -Bstatic/-Bdynamic, which is
> required to make -static-libstdc++ work.  Tested with a
> --enable-languages=go bootstrap (which includes c++ and links go1
> statically with libstdc++ if everything works), installed on mainline.
>
> 	Rainer

Ok.

Paolo
diff mbox

Patch

diff -r a0819d06016d gcc/configure.ac
--- a/gcc/configure.ac	Thu Jan 27 18:40:40 2011 +0100
+++ b/gcc/configure.ac	Thu Jan 27 18:43:51 2011 +0100
@@ -3123,6 +3123,10 @@ 
       gcc_cv_ld_static_dynamic=yes
   else
     case "$target" in
+      # IRIX 6 ld supports -Bstatic/-Bdynamic.
+      mips-sgi-irix6*)
+        gcc_cv_ld_static_dynamic=yes
+        ;;
       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
       *-*-solaris2*)
         gcc_cv_ld_static_dynamic=yes