Mercurial > hg > xemacs-beta
comparison src/s/linux.h @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children | 41dbb7a9d5f2 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
23 | 23 |
24 /* This file was put together by Michael K. Johnson and Rik Faith. */ | 24 /* This file was put together by Michael K. Johnson and Rik Faith. */ |
25 | 25 |
26 #define USG | 26 #define USG |
27 #define LINUX | 27 #define LINUX |
28 | |
29 /* powerpc gcc 2.8.0 doesn't define __ELF__, but it is */ | |
30 | |
31 #if defined(__ELF__) || defined(powerpc) | |
32 #define LINUX_ELF | |
33 #endif | |
34 | 28 |
35 /* SYSTEM_TYPE should indicate the kind of system you are using. | 29 /* SYSTEM_TYPE should indicate the kind of system you are using. |
36 It sets the Lisp variable system-type. */ | 30 It sets the Lisp variable system-type. */ |
37 | 31 |
38 #define SYSTEM_TYPE "linux" /* All the best software is free. */ | 32 #define SYSTEM_TYPE "linux" /* All the best software is free. */ |
85 #endif /* C_CODE */ | 79 #endif /* C_CODE */ |
86 | 80 |
87 /* Ask GCC where to find libgcc.a. */ | 81 /* Ask GCC where to find libgcc.a. */ |
88 #define LIB_GCC "`$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`" | 82 #define LIB_GCC "`$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`" |
89 | 83 |
90 #ifndef LINUX_ELF | 84 #ifndef __ELF__ |
91 /* Linux has crt0.o in a non-standard place */ | 85 /* Linux has crt0.o in a non-standard place */ |
92 #define START_FILES "pre-crt0.o /usr/lib/crt0.o" | 86 #define START_FILES "pre-crt0.o /usr/lib/crt0.o" |
93 #else | 87 #else |
94 /**/ | 88 /**/ |
95 #if defined(__linux__) && defined(powerpc) /*Added by Fukui*/ | 89 #if defined(__linux__) && defined(powerpc) /*Added by Fukui*/ |
110 #define POSIX /* affects getpagesize.h and systty.h */ | 104 #define POSIX /* affects getpagesize.h and systty.h */ |
111 | 105 |
112 /* Best not to include -lg, unless it is last on the command line */ | 106 /* Best not to include -lg, unless it is last on the command line */ |
113 #define LIBS_DEBUG | 107 #define LIBS_DEBUG |
114 #define LIBS_TERMCAP "-ltermcap -lcurses" /* save some space with shared libs*/ | 108 #define LIBS_TERMCAP "-ltermcap -lcurses" /* save some space with shared libs*/ |
115 #ifndef LINUX_ELF | 109 #ifndef __ELF__ |
116 #define LIB_STANDARD "-lc" /* avoid -lPW */ | 110 #define LIB_STANDARD "-lc" /* avoid -lPW */ |
117 #else | 111 #else |
118 /*#undef LIB_GCC | 112 /*#undef LIB_GCC |
119 #define LIB_GCC*/ | 113 #define LIB_GCC*/ |
120 #define LIB_STANDARD "-lgcc -lc -lgcc /usr/lib/crtn.o" | 114 #define LIB_STANDARD "-lgcc -lc -lgcc /usr/lib/crtn.o" |
128 /* alane@wozzle.linet.org says that -lipc is not a separate library, | 122 /* alane@wozzle.linet.org says that -lipc is not a separate library, |
129 since libc-4.4.1. So -lipc was deleted. */ | 123 since libc-4.4.1. So -lipc was deleted. */ |
130 #define LIBS_SYSTEM | 124 #define LIBS_SYSTEM |
131 #endif | 125 #endif |
132 | 126 |
133 #ifdef LINUX_ELF | 127 #ifdef __ELF__ |
134 #define UNEXEC "unexelf.o" | 128 #define UNEXEC "unexelf.o" |
135 #define UNEXEC_USE_MAP_PRIVATE | 129 #define UNEXEC_USE_MAP_PRIVATE |
136 #if 0 | 130 #if 0 |
137 /* mrb - Ordinary link is simple and effective */ | 131 /* mrb - Ordinary link is simple and effective */ |
138 /* slb - Not any more ... :-( */ | 132 /* slb - Not any more ... :-( */ |
146 #ifdef ORDINARY_LINK | 140 #ifdef ORDINARY_LINK |
147 #undef LIB_STANDARD | 141 #undef LIB_STANDARD |
148 #undef START_FILES | 142 #undef START_FILES |
149 #undef LIB_GCC | 143 #undef LIB_GCC |
150 #endif | 144 #endif |
151 #endif /* LINUX_ELF */ | 145 #endif /* __ELF__ */ |
152 | 146 |
153 #ifdef LINUX_QMAGIC | 147 #ifdef LINUX_QMAGIC |
154 | 148 |
155 #define HAVE_TEXT_START | 149 #define HAVE_TEXT_START |
156 #define UNEXEC "unexsunos4.o" | 150 #define UNEXEC "unexsunos4.o" |