diff options
| author | Glenn Morris | 2010-04-26 20:14:14 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-04-26 20:14:14 -0700 |
| commit | 76cda504fbe7474fc404611a00764b3db703e650 (patch) | |
| tree | 41bc0711c1d006e34dffe6f80cebf7c632b9071d /src/s | |
| parent | 7186fb09de6c3c4789aaa808a4f9af97b1cf14d4 (diff) | |
| download | emacs-76cda504fbe7474fc404611a00764b3db703e650.tar.gz emacs-76cda504fbe7474fc404611a00764b3db703e650.zip | |
Use $CRT_DIR in more places.
* configure.in (--with-crt-dir): Doc fix (now valid for all platforms).
(CRT_DIR): On (powerpc64|sparc64)-*-linux-gnu*, default to /usr/lib64.
On hpux10-20, default to /lib.
* src/m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
since the defaults (set by the system file) are fine in most cases.
[GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
* src/m/ibms390x.h (START_FILES, LIB_STANDARD):
* src/m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
* src/m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
Remove definitions, since they are set correctly in s/gnu-linux.h.
* src/s/freebsd.h (START_FILES, LIB_STANDARD):
* src/s/gnu-linux.h (START_FILES, LIB_STANDARD):
* src/s/hpux10-20.h (START_FILES):
* src/s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
* src/Makefile.in: Comment.
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/freebsd.h | 4 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 4 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 2 | ||||
| -rw-r--r-- | src/s/netbsd.h | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index d8aaa833265..6c4da8f0863 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -46,8 +46,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 46 | there, contrary to what a stock GCC would do. */ | 46 | there, contrary to what a stock GCC would do. */ |
| 47 | 47 | ||
| 48 | #define LD_SWITCH_SYSTEM -L/usr/local/lib | 48 | #define LD_SWITCH_SYSTEM -L/usr/local/lib |
| 49 | #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o | 49 | #define START_FILES pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o |
| 50 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o | 50 | #define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o |
| 51 | #undef LIB_GCC | 51 | #undef LIB_GCC |
| 52 | #define LIB_GCC | 52 | #define LIB_GCC |
| 53 | 53 | ||
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index a55fbcb9821..3d470032efc 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -168,7 +168,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 168 | /* Ask GCC where to find libgcc.a. */ | 168 | /* Ask GCC where to find libgcc.a. */ |
| 169 | #define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name` | 169 | #define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name` |
| 170 | 170 | ||
| 171 | #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o | 171 | #define START_FILES pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o |
| 172 | 172 | ||
| 173 | /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option | 173 | /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option |
| 174 | says where to find X windows at run time. */ | 174 | says where to find X windows at run time. */ |
| @@ -190,7 +190,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 190 | 190 | ||
| 191 | #undef LIB_GCC | 191 | #undef LIB_GCC |
| 192 | #define LIB_GCC | 192 | #define LIB_GCC |
| 193 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o | 193 | #define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtn.o |
| 194 | 194 | ||
| 195 | /* _BSD_SOURCE is redundant, at least in glibc2, since we define | 195 | /* _BSD_SOURCE is redundant, at least in glibc2, since we define |
| 196 | _GNU_SOURCE. Left in in case it's relevant to libc5 systems and | 196 | _GNU_SOURCE. Left in in case it's relevant to libc5 systems and |
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index b7dab37760e..28030de8897 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -170,7 +170,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 170 | 170 | ||
| 171 | #define NO_REMAP | 171 | #define NO_REMAP |
| 172 | 172 | ||
| 173 | #define START_FILES pre-crt0.o /lib/crt0.o | 173 | #define START_FILES pre-crt0.o $(CRT_DIR)/crt0.o |
| 174 | 174 | ||
| 175 | /* Define VIRT_ADDR_VARIES if the virtual addresses of | 175 | /* Define VIRT_ADDR_VARIES if the virtual addresses of |
| 176 | pure and impure space as loaded can vary, and even their | 176 | pure and impure space as loaded can vary, and even their |
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index ee5d5b3f898..fd5ccc5fa87 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -28,14 +28,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | 28 | ||
| 29 | #define LIBS_TERMCAP -ltermcap | 29 | #define LIBS_TERMCAP -ltermcap |
| 30 | 30 | ||
| 31 | #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o | 31 | #define START_FILES pre-crt0.o $(CRT_DIR)/crt0.o START_FILES_1 $(CRT_DIR)/crtbegin.o |
| 32 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 | 32 | #define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtend.o END_FILES_1 |
| 33 | #undef LIB_GCC | 33 | #undef LIB_GCC |
| 34 | #define LIB_GCC | 34 | #define LIB_GCC |
| 35 | 35 | ||
| 36 | #ifdef HAVE_CRTIN | 36 | #ifdef HAVE_CRTIN |
| 37 | #define START_FILES_1 /usr/lib/crti.o | 37 | #define START_FILES_1 $(CRT_DIR)/crti.o |
| 38 | #define END_FILES_1 /usr/lib/crtn.o | 38 | #define END_FILES_1 $(CRT_DIR)/crtn.o |
| 39 | #else | 39 | #else |
| 40 | #define START_FILES_1 | 40 | #define START_FILES_1 |
| 41 | #define END_FILES_1 | 41 | #define END_FILES_1 |