linux-mips-fnet
[Top] [All Lists]

Re: Linux/SGI coming

To: linux-mips@fnet.fr
Subject: Re: Linux/SGI coming
From: tor@spacetec.no (Tor Arntsen)
Date: Sun, 28 Apr 1996 01:28:23 +0200
In-reply-to: Ralf Baechle <ralf@Julia.DE> "Re: Linux/SGI coming" (Apr 26, 21:17)
Hi Ralf,

I found a problem when building gcc 2.7.2 (sources + your patches) as
cross-compiler on mips (sgi) for big-endian elf.  Patch follows:
Tor

--- config/mips/linux.h.old     Thu Apr  4 15:45:33 1996
+++ config/mips/linux.h Sun Apr 28 00:56:51 1996
@@ -41,16 +41,6 @@
 #define MIPS_DEFAULT_GVALUE 0
 
 /*
- * Specify predefined symbols in preprocessor.
- */
-#undef CPP_PREDEFINES
-#ifdef WITH_SHARED_LIBS
-#define CPP_PREDEFINES "-D__ELF__ -D__PIC__ -D__pic__ -Dunix -Dmips -DR3000 
-DMIPSEB -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(mips) -Amachine(mips)"
-#else
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -Dmips -DR3000 -DMIPSEB -Dlinux 
-Asystem(unix) -Asystem(posix) -Acpu(mips) -Amachine(mips)"
-#endif
-
-/*
  * MIPS uses $ but . seems standard for Sys V
  */
 #undef LOCAL_LABEL_PREFIX
@@ -106,9 +96,19 @@
   } while (0)
 
 /*
- * This also includes <svr4.h>
+ * This also includes <svr4.h> (which undefines CPP_PREDEFINES)
  */
 #include <linux.h>
+
+/*
+ * Specify predefined symbols in preprocessor.
+ */
+#undef CPP_PREDEFINES
+#ifdef WITH_SHARED_LIBS
+#define CPP_PREDEFINES "-D__ELF__ -D__PIC__ -D__pic__ -Dunix -Dmips -DR3000 
-DMIPSEB -Dlinux -Asystem(unix) -Asystem(posix) -Acpu(mips) -Amachine(mips)"
+#else
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -Dmips -DR3000 -DMIPSEB -Dlinux 
-Asystem(unix) -Asystem(posix) -Acpu(mips) -Amachine(mips)"
+#endif
 
 #undef CPP_SPEC
 #define CPP_SPEC "\


<Prev in Thread] Current Thread [Next in Thread>