Mercurial > emacs
comparison src/m/amdx86-64.h @ 87809:a183f87087f5
(START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
instead of HAVE_X86_64_LIB64_DIR.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Thu, 17 Jan 2008 11:42:07 +0000 |
parents | 107ccd98fa12 |
children | c70e45a7acfd 7e5b32f86a4c |
comparison
equal
deleted
inserted
replaced
87808:ebef80cbd501 | 87809:a183f87087f5 |
---|---|
144 #undef LIB_STANDARD | 144 #undef LIB_STANDARD |
145 | 145 |
146 #else /* !__OpenBSD__ && !__FreeBSD__ && !__NetBSD__ && !sun */ | 146 #else /* !__OpenBSD__ && !__FreeBSD__ && !__NetBSD__ && !sun */ |
147 | 147 |
148 #undef START_FILES | 148 #undef START_FILES |
149 #ifdef HAVE_X86_64_LIB64_DIR | 149 #ifdef HAVE_LIB64_DIR |
150 #define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o | 150 #define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o |
151 #else | 151 #else |
152 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o | 152 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o |
153 #endif | 153 #endif |
154 | 154 |
156 The reason is that some functions in libgcc.a call functions from libc.a, | 156 The reason is that some functions in libgcc.a call functions from libc.a, |
157 and some libc.a functions need functions from libgcc.a. Since most | 157 and some libc.a functions need functions from libgcc.a. Since most |
158 versions of ld are one-pass linkers, we need to mention -lgcc twice, | 158 versions of ld are one-pass linkers, we need to mention -lgcc twice, |
159 or else we risk getting unresolved externals. */ | 159 or else we risk getting unresolved externals. */ |
160 #undef LIB_STANDARD | 160 #undef LIB_STANDARD |
161 #ifdef HAVE_X86_64_LIB64_DIR | 161 #ifdef HAVE_LIB64_DIR |
162 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o | 162 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o |
163 #else | 163 #else |
164 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o | 164 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o |
165 #endif | 165 #endif |
166 | 166 |