changeset 69561:496d2fcbae73

Don't use unexmips on NetBSD. (LIBS_MACHINE): Move definition lower, so it doesn't use LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP, C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 18 Mar 2006 14:52:19 +0000
parents dab2f548eda2
children ca4e0ee2a8f8
files src/m/mips.h
diffstat 1 files changed, 11 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/m/mips.h	Sat Mar 18 14:51:54 2006 +0000
+++ b/src/m/mips.h	Sat Mar 18 14:52:19 2006 +0000
@@ -112,10 +112,10 @@
 /* This machine requires completely different unexec code
    which lives in a separate file.  Specify the file name.  */
 
-#ifndef __linux__
+#if !defined(__linux__) && !defined(__NetBSD__)
 #undef UNEXEC
 #define UNEXEC unexmips.o
-#endif /* not __linux__ */
+#endif /* not __linux__ && not __NetBSD__ */
 
 /* Describe layout of the address space in an executing process.  */
 
@@ -142,6 +142,15 @@
 #if defined (__NetBSD__) || defined (__OpenBSD__)
 #else  /* bsd with elf */
 #define LINKER /bsd43/bin/ld
+
+#define LD_SWITCH_MACHINE -D 800000 -g3
+#define START_FILES pre-crt0.o /usr/lib/crt1.o
+#define LIB_STANDARD -lbsd -lc /usr/lib/crtn.o
+#define LIBS_TERMCAP -lcurses
+
+#define C_SWITCH_MACHINE -I/usr/include/bsd
+#define C_DEBUG_SWITCH -O -g3
+
 #endif /* bsd with elf */
 #else /* not BSD_SYSTEM */
 
@@ -151,14 +160,6 @@
 #define LIBS_MACHINE -lmld
 #endif
 
-#define LD_SWITCH_MACHINE -D 800000 -g3
-#define START_FILES pre-crt0.o /usr/lib/crt1.o
-#define LIB_STANDARD -lbsd -lc /usr/lib/crtn.o
-#define LIBS_TERMCAP -lcurses
-
-#define C_SWITCH_MACHINE -I/usr/include/bsd
-#define C_DEBUG_SWITCH -O -g3
-
 #endif /* not BSD_SYSTEM */
 #endif /* not NEWSOS5 && not __linux__ */