Commit | Line | Data |
---|---|---|
20c428fd JB |
1 | /* machine description file for Mips running RISCOS version 4. */ |
2 | ||
3 | #include "mips.h" | |
4 | ||
177c0ea7 | 5 | /* The following line tells the configuration script what sort of |
20c428fd JB |
6 | operating system this machine is likely to run. |
7 | USUAL-OPSYS="note" | |
8 | ||
9 | NOTE-START | |
10 | Use -opsystem=usg5-2-2 normally, or -opsystem=bsd4-3 with the BSD | |
11 | world. | |
12 | NOTE-END */ | |
13 | ||
57a1f2a2 | 14 | #if 0 |
20c428fd | 15 | /* Define MIPS2 if you have an R6000 or R4000. */ |
96160d21 | 16 | #define MIPS2 |
57a1f2a2 | 17 | #endif |
20c428fd | 18 | |
93a37120 JB |
19 | #ifdef __GNUC__ |
20 | #define C_DEBUG_SWITCH -g -O | |
21 | #else | |
66470939 RS |
22 | /* We used to have -systype bsd43, but a configure change |
23 | now takes care of that option. */ | |
20c428fd | 24 | #ifdef MIPS2 |
7a19891b | 25 | #define C_DEBUG_SWITCH -DMips -g3 -Wf,-XNd4000 -O -Olimit 2000 -mips2 |
20c428fd | 26 | #else |
7a19891b | 27 | #define C_DEBUG_SWITCH -DMips -g3 -Wf,-XNd4000 -O -Olimit 2000 |
20c428fd | 28 | #endif |
93a37120 | 29 | #endif |
20c428fd JB |
30 | |
31 | #ifdef TERMINFO | |
32 | #undef TERMINFO | |
33 | #endif | |
34 | ||
35 | #define START_FILES pre-crt0.o /lib/crt1.o | |
57a1f2a2 RS |
36 | /* Used to have -lisode, but jlp@math.byu.edu says remove it |
37 | (for RISCOS 4.52). */ | |
843873e9 RS |
38 | /* ethanb@ptolemy.astro.washington.edu says crtn.o uses _ctype |
39 | and therefore we must search libc again after crtn.o. | |
40 | The -L is used to force second -lc to find the sysv version | |
41 | of libc.a, which is needed because the BSD libc.a | |
42 | doesn't have _ctype. */ | |
43 | #define LIB_STANDARD -lmld -lc /lib/crtn.o -L/usr/lib -lc | |
20c428fd JB |
44 | |
45 | ||
46 | #define COFF | |
47 | #undef LD_SWITCH_MACHINE | |
48 | #define LD_SWITCH_MACHINE -systype bsd43 -g3 -D 800000 | |
66470939 RS |
49 | |
50 | #define NO_MODE_T | |
ecc22c11 RS |
51 | |
52 | /* These are needed on Riscos 4.0. | |
6df54671 KH |
53 | It appears that's the only system which uses mips4.h and defines BSD. */ |
54 | #ifdef BSD_SYSTEM | |
ecc22c11 RS |
55 | #undef HAVE_STRERROR |
56 | #undef HAVE_XRMSETDATABASE | |
57 | #undef HAVE_XSCREENRESOURCESTRING | |
58 | #undef HAVE_SETSID | |
59 | #endif |