comparison src/s/linux.h @ 420:41dbb7a9d5f2 r21-2-18

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