aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-03-19 22:18:05 -0700
committerDan Nicolaescu2010-03-19 22:18:05 -0700
commit7f110ddcb0e4665ac828be714c1bf9d81991dc9c (patch)
treebf1e3555f4206376cd807492489a0701df5c2fe5 /src
parent5e418f17344c759ada93ade232fa5bdd9c290e06 (diff)
downloademacs-7f110ddcb0e4665ac828be714c1bf9d81991dc9c.tar.gz
emacs-7f110ddcb0e4665ac828be714c1bf9d81991dc9c.zip
* s/openbsd.h: Remove support for non-ELF and for systems that do
not support shared libraries. * s/netbsd.h: * s/freebsd.h: Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/s/freebsd.h33
-rw-r--r--src/s/netbsd.h9
-rw-r--r--src/s/openbsd.h8
4 files changed, 7 insertions, 50 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 80d45c6fe45..14723c49df2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
12010-03-20 Dan Nicolaescu <dann@ics.uci.edu> 12010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 * s/openbsd.h: Remove support for non-ELF and for systems that do
4 not support shared libraries.
5 * s/netbsd.h:
6 * s/freebsd.h: Likewise.
7
82010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
9
3 Remove non-working support for lynxos 3.0. 10 Remove non-working support for lynxos 3.0.
4 * s/lynxos.h: Remove file. 11 * s/lynxos.h: Remove file.
5 12
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index e13941d2dcc..ad7f77acc8f 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -23,26 +23,6 @@ GNU General Public License for more details.
23You should have received a copy of the GNU General Public License 23You should have received a copy of the GNU General Public License
24along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 24along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
25 25
26/* Get the correct __FreeBSD_version, even if this is before that was
27 defined. */
28#ifndef __FreeBSD_version
29#ifndef __FreeBSD__
30#define __FreeBSD_version 199401
31#elif __FreeBSD__ == 1
32#define __FreeBSD_version 199405
33#else
34#include <osreldate.h>
35#endif
36#endif /* !defined __FreeBSD_version */
37
38/* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up.
39 Earlier versions do not have shared libraries, so inhibit them.
40 You can inhibit them on newer systems if you wish
41 by defining NO_SHARED_LIBS. */
42#ifndef __FreeBSD__
43#define NO_SHARED_LIBS
44#endif
45
46/* Get most of the stuff from bsd-common */ 26/* Get most of the stuff from bsd-common */
47#include "bsd-common.h" 27#include "bsd-common.h"
48 28
@@ -69,8 +49,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
69/* freebsd has POSIX-style pgrp behavior. */ 49/* freebsd has POSIX-style pgrp behavior. */
70#undef BSD_PGRPS 50#undef BSD_PGRPS
71 51
72#ifdef __ELF__
73
74/* Let `ld' find image libs and similar things in /usr/local/lib. The 52/* Let `ld' find image libs and similar things in /usr/local/lib. The
75 system compiler, GCC, has apparently been modified to not look 53 system compiler, GCC, has apparently been modified to not look
76 there, contrary to what a stock GCC would do. */ 54 there, contrary to what a stock GCC would do. */
@@ -82,17 +60,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
82#undef LIB_GCC 60#undef LIB_GCC
83#define LIB_GCC 61#define LIB_GCC
84 62
85#else /* not __ELF__ */
86
87#ifdef NO_SHARED_LIBS
88#ifdef __FreeBSD__ /* shared libs are available, but the user prefers
89 not to use them. */
90#define LD_SWITCH_SYSTEM -Bstatic -L/usr/local/lib
91#endif /* __FreeBSD__ */
92#endif /* NO_SHARED_LIBS */
93
94#endif /* not __ELF__ */
95
96#define HAVE_GETLOADAVG 1 63#define HAVE_GETLOADAVG 1
97#define HAVE_TERMIOS 64#define HAVE_TERMIOS
98#define NO_TERMIO 65#define NO_TERMIO
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 17d3b33451e..b2fcd3989ad 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -22,10 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22/* Get most of the stuff from bsd-common */ 22/* Get most of the stuff from bsd-common */
23#include "bsd-common.h" 23#include "bsd-common.h"
24 24
25#if defined (__alpha__) && !defined (__ELF__)
26#define NO_SHARED_LIBS
27#endif
28
29/* For mem-limits.h. */ 25/* For mem-limits.h. */
30#define BSD4_2 26#define BSD4_2
31 27
@@ -53,13 +49,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53/* Netbsd has POSIX-style pgrp behavior. */ 49/* Netbsd has POSIX-style pgrp behavior. */
54#undef BSD_PGRPS 50#undef BSD_PGRPS
55 51
56#if !defined (NO_SHARED_LIBS) && defined (__ELF__)
57#define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o 52#define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o
58#define UNEXEC unexelf.o 53#define UNEXEC unexelf.o
59#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 54#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1
60#undef LIB_GCC 55#undef LIB_GCC
61#define LIB_GCC 56#define LIB_GCC
62#endif
63 57
64#ifdef HAVE_CRTIN 58#ifdef HAVE_CRTIN
65#define START_FILES_1 /usr/lib/crti.o 59#define START_FILES_1 /usr/lib/crti.o
@@ -71,7 +65,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
71 65
72#define AMPERSAND_FULL_NAME 66#define AMPERSAND_FULL_NAME
73 67
74#ifdef __ELF__
75/* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option 68/* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
76 says where to find X windows at run time. We convert it to a -rpath option 69 says where to find X windows at run time. We convert it to a -rpath option
77 which is what OSF1 uses. */ 70 which is what OSF1 uses. */
@@ -92,8 +85,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
92 85
93#define LD_SWITCH_SYSTEM_TEMACS -Wl,-z,nocombreloc 86#define LD_SWITCH_SYSTEM_TEMACS -Wl,-z,nocombreloc
94 87
95#endif /* __ELF__ */
96
97/* On post 1.3 releases of NetBSD, gcc -nostdlib also clears 88/* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
98 the library search parth, i.e. it won't search /usr/lib 89 the library search parth, i.e. it won't search /usr/lib
99 for libc and friends. Using -nostartfiles instead avoids 90 for libc and friends. Using -nostartfiles instead avoids
diff --git a/src/s/openbsd.h b/src/s/openbsd.h
index 3b996de7059..a74601d3ad8 100644
--- a/src/s/openbsd.h
+++ b/src/s/openbsd.h
@@ -19,7 +19,6 @@
19 19
20#undef LD_SWITCH_SYSTEM_TEMACS 20#undef LD_SWITCH_SYSTEM_TEMACS
21#undef LD_SWITCH_SYSTEM 21#undef LD_SWITCH_SYSTEM
22#ifdef __ELF__
23 22
24 /* Han Boetes <han@mijncomputer.nl> says this 23 /* Han Boetes <han@mijncomputer.nl> says this
25 is necessary, otherwise Emacs dumps core on elf systems. */ 24 is necessary, otherwise Emacs dumps core on elf systems. */
@@ -29,12 +28,5 @@
29 default. */ 28 default. */
30#define LD_SWITCH_X_DEFAULT -L/usr/local/lib 29#define LD_SWITCH_X_DEFAULT -L/usr/local/lib
31 30
32#else
33
34#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp
35#define LD_SWITCH_X_DEFAULT -L/usr/local/lib
36
37#endif
38
39/* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2 31/* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2
40 (do not change this comment) */ 32 (do not change this comment) */