Change to specs for mips-sgi-irix6.2

Swen Thuemmler swen@uni-paderborn.de
Wed Oct 8 02:13:00 GMT 1997


Hi,

while trying to compile X11R6.3 with egcs-2.90.11, I observed that the
just compiled libraries would not be linked in spite of using -L. Further
investigation revealed that there were already X-Libraries in /usr/lib32
on my system, and gcc put -L/usr/lib32 ahead of all other linker options.
I think it should be ok to put it at the end of the options and moved this
from the STARTFILE_SPEC to the ENDFILE_SPEC definition in iris6.h. Now I
was able to use my own X11-libraries. Hope this patch is correct.

Greetings, Swen

--- gcc/config/mips/iris6.h.orig	Tue Oct  7 12:56:53 1997
+++ gcc/config/mips/iris6.h	Tue Oct  7 13:01:43 1997
@@ -500,12 +500,9 @@
          %{!pg:%{p:/usr/lib32/mips3/nonshared/mcrt1.o%s \
              /usr/lib32/mips3/nonshared/libprof1.a%s} \
            %{!p:/usr/lib32/mips3/nonshared/crt1.o%s}}}}}} \
-   %{mabi=n32: %{mips4:-L/usr/lib32/mips4} %{!mips4:-L/usr/lib32/mips3} \
-     -L/usr/lib32} \
-   %{mabi=64: %{mips4:-L/usr/lib64/mips4} %{!mips4:-L/usr/lib64/mips3} \
-     -L/usr/lib64} \
-   %{!mabi*: %{mips4:-L/usr/lib32/mips4} %{!mips4:-L/usr/lib32/mips3} \
-     -L/usr/lib32} \
+   %{mabi=n32: %{mips4:-L/usr/lib32/mips4} %{!mips4:-L/usr/lib32/mips3}} \
+   %{mabi=64: %{mips4:-L/usr/lib64/mips4} %{!mips4:-L/usr/lib64/mips3}} \
+   %{!mabi*: %{mips4:-L/usr/lib32/mips4} %{!mips4:-L/usr/lib32/mips3}} \
    crtbegin.o%s"
 
 #undef LIB_SPEC
@@ -525,11 +522,11 @@
    %{!shared: \
      %{mabi=32:crtn.o%s}\
      %{mabi=n32:%{mips4:/usr/lib32/mips4/crtn.o%s}\
-       %{!mips4:/usr/lib32/mips3/crtn.o%s}}\
+       %{!mips4:/usr/lib32/mips3/crtn.o%s} -L/usr/lib32}\
      %{mabi=64:%{mips4:/usr/lib64/mips4/crtn.o%s}\
-       %{!mips4:/usr/lib64/mips3/crtn.o%s}}\
+       %{!mips4:/usr/lib64/mips3/crtn.o%s} -L/usr/lib64}\
      %{!mabi*:%{mips4:/usr/lib32/mips4/crtn.o%s}\
-       %{!mips4:/usr/lib32/mips3/crtn.o%s}}}"
+       %{!mips4:/usr/lib32/mips3/crtn.o%s} -L/usr/lib32}}"
 
 /* ??? If no mabi=X option give, but a mipsX option is, then should depend
    on the mipsX option.  */




More information about the Gcc-bugs mailing list