This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
MIPS/Linux Patch
- To: egcs-patches@egcs.cygnus.com
- Subject: MIPS/Linux Patch
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 20 Aug 1999 07:31:20 +0200
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