diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-05-16 01:33:12 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-05-16 01:33:12 +0000 |
commit | 4dee6d0d08ae33201aa74fc5fb39ca556a0ab7e6 (patch) | |
tree | 3c1a27bc97d44843539526377ec4f5dfab163eee /src/s/gnu-linux.h | |
parent | 4e9ffb56abc9f3793c463c599fdf11d15c4edbf3 (diff) | |
download | emacs-4dee6d0d08ae33201aa74fc5fb39ca556a0ab7e6.tar.gz |
Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
[__ELF__] (START_FILES, LIB_STANDARD, LIB_GCC, UNEXEC): Define these.
Diffstat (limited to 'src/s/gnu-linux.h')
-rw-r--r-- | src/s/gnu-linux.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 3c251fb3336..9ed90ee3a4c 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h @@ -1,4 +1,4 @@ -/* This file is the configuration file for the Linux operating system. +/* This file is the configuration file for the GNU/Linux operating system. Copyright (C) 1985, 1986, 1992, 1994 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -144,7 +144,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef emacs #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ -#ifdef _IO_STDIO_H +#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) /* new C libio names */ #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) @@ -155,8 +155,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #endif /* !_IO_STDIO_H */ #endif /* emacs */ +#ifndef __ELF__ /* Linux has crt0.o in a non-standard place */ #define START_FILES pre-crt0.o /usr/lib/crt0.o +#else +#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o +#endif /* As of version 1.1.51, Linux does not actually implement SIGIO. */ /* Here we assume that signal.h is already included. */ @@ -186,7 +190,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Best not to include -lg, unless it is last on the command line */ #define LIBS_DEBUG #define LIBS_TERMCAP -ltermcap -lcurses /* save some space with shared libs*/ +#ifndef __ELF__ #define LIB_STANDARD -lc /* avoid -lPW */ +#else +#define LIB_GCC +#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o +#endif /* Don't use -g in test compiles in configure. This is so we will use the same shared libs for that linking @@ -215,6 +224,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HAVE_SYSVIPC +#ifdef __ELF__ +#define UNEXEC unexelf.o +#endif + #ifdef LINUX_QMAGIC #define HAVE_TEXT_START |