Patchwork [build] Use -Bstatic/-Bdynamic on IRIX

login
register
mail settings
Submitter Rainer Orth
Date Jan. 28, 2011, 9:39 a.m.
Message ID <yddr5bxfjtf.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/80812/
State New
Headers show

Comments

Rainer Orth - Jan. 28, 2011, 9:39 a.m.
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.
Paolo Bonzini - Jan. 28, 2011, 12:35 p.m.
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

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