This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

MIPS/Linux Patch



I've configured the current mainstream egcs for mipsel-linux and
couldn't build the stage2 compiler:-(.  The problem was an empty lib
entry in the specs file.  The appended patch fixes that problem.

Andreas

1999-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* linux.h (LIB_SPEC): Added.

--- gcc/config/mips/linux.h.~1~	Thu Apr 15 08:09:22 1999
+++ gcc/config/mips/linux.h	Fri Aug 20 07:28:50 1999
@@ -55,6 +55,13 @@
 #undef MIPS_DEFAULT_GVALUE
 #define MIPS_DEFAULT_GVALUE 0
 
+#undef LIB_SPEC
+/* Taken from sprac/linux.h.  */
+#define LIB_SPEC \
+  "%{shared: -lc} \
+   %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+     %{profile:-lc_p} %{!profile: -lc}}"
+
 /* Borrowed from sparc/linux.h */
 #undef LINK_SPEC
 #define LINK_SPEC "-Y P,/usr/lib %{shared:-shared} \

-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]