aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorGlenn Morris2010-05-06 19:55:47 -0700
committerGlenn Morris2010-05-06 19:55:47 -0700
commit2f86b22b05324b3687dd470bbd85e65d4d8db1d7 (patch)
tree46379234ee8f4d02c818b9b93685552b0a09c346 /src/s
parentcae7fcf92d01240eb8dd6de99ba8add4d85b397e (diff)
downloademacs-2f86b22b05324b3687dd470bbd85e65d4d8db1d7.tar.gz
emacs-2f86b22b05324b3687dd470bbd85e65d4d8db1d7.zip
Move LD_SWITCH_SYSTEM from cpp to configure.
* configure.in (LD_SWITCH_SYSTEM): Set with configure, not cpp. Merges logic from src/s/* and src/Makefile.in. (LD_SWITCH_SYSTEM_TEMACS): New output variable. * src/Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp. (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure. (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA, move out of cpp section. * src/s/freebsd.h (LD_SWITCH_SYSTEM): * src/s/gnu-linux.h (LD_SWITCH_SYSTEM): * src/s/netbsd.h (LD_SWITCH_SYSTEM): * admin/CPP-DEFINES: Remove LD_SWITCH_SYSTEM.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/freebsd.h14
-rw-r--r--src/s/gnu-linux.h15
-rw-r--r--src/s/netbsd.h8
3 files changed, 9 insertions, 28 deletions
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index 0b56f6b3c81..1e79e1d3581 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -1,9 +1,8 @@
1/* System description header for FreeBSD systems. 1/* System description header for FreeBSD systems.
2 This file describes the parameters that system description files 2
3 should define or not. 3Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 4 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 5 Free Software Foundation, Inc.
6 Free Software Foundation, Inc.
7 6
8Author: Shawn M. Carey 7Author: Shawn M. Carey
9(according to authors.el) 8(according to authors.el)
@@ -41,11 +40,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
41#define LIBS_TERMCAP -lncurses 40#define LIBS_TERMCAP -lncurses
42#endif 41#endif
43 42
44/* Let `ld' find image libs and similar things in /usr/local/lib. The
45 system compiler, GCC, has apparently been modified to not look
46 there, contrary to what a stock GCC would do. */
47
48#define LD_SWITCH_SYSTEM -L/usr/local/lib
49#undef LIB_GCC 43#undef LIB_GCC
50#define LIB_GCC 44#define LIB_GCC
51 45
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index e5ac75ff0d4..f3a06990ed3 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -1,7 +1,7 @@
1/* This file is the configuration file for Linux-based GNU systems 1/* This file is the configuration file for Linux-based GNU systems
2 Copyright (C) 1985, 1986, 1992, 1994, 1996, 1999, 2001, 2002, 2003, 2004, 2
3 2005, 2006, 2007, 2008, 2009, 2010 3Copyright (C) 1985, 1986, 1992, 1994, 1996, 1999, 2001, 2002, 2003, 2004,
4 Free Software Foundation, Inc. 4 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
7 7
@@ -169,15 +169,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
169/* Ask GCC where to find libgcc.a. */ 169/* Ask GCC where to find libgcc.a. */
170#define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name` 170#define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`
171 171
172/* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
173 that says where to find X windows at run time. */
174
175#ifdef __mips__
176#define LD_SWITCH_SYSTEM -G 0 $(LD_SWITCH_X_SITE_AUX)
177#else
178#define LD_SWITCH_SYSTEM $(LD_SWITCH_X_SITE_AUX)
179#endif /* __mips__ */
180
181#ifdef emacs 172#ifdef emacs
182#define INTERRUPT_INPUT 173#define INTERRUPT_INPUT
183#endif 174#endif
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 987f5e68907..a92e8ce56ee 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -1,7 +1,7 @@
1/* s/ file for netbsd system. 1/* s/ file for netbsd system.
2 2
3 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 3Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
4 2008, 2009, 2010 Free Software Foundation, Inc. 4 2010 Free Software Foundation, Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
7 7
@@ -33,10 +33,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
33 33
34#define AMPERSAND_FULL_NAME 34#define AMPERSAND_FULL_NAME
35 35
36/* LD_SWITCH_X_SITE_AUX_RPATH gives a -rpath option (which is what
37 OSF1 uses) that says where to find X windows at run time. */
38#define LD_SWITCH_SYSTEM $(LD_SWITCH_X_SITE_AUX_RPATH) -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
39
40/* On post 1.3 releases of NetBSD, gcc -nostdlib also clears 36/* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
41 the library search parth, i.e. it won't search /usr/lib 37 the library search parth, i.e. it won't search /usr/lib
42 for libc and friends. Using -nostartfiles instead avoids 38 for libc and friends. Using -nostartfiles instead avoids