aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2010-05-03 20:06:27 -0700
committerGlenn Morris2010-05-03 20:06:27 -0700
commiteb21eab59bbe301074cf478f43743d335254d97e (patch)
tree93c30997ebe5045d6c933bc17c5f9e27f9bce7b5 /src
parent496287859b525d24bf38ef19a38ea2fd7d309bd1 (diff)
downloademacs-eb21eab59bbe301074cf478f43743d335254d97e.tar.gz
emacs-eb21eab59bbe301074cf478f43743d335254d97e.zip
Move LD_SWITCH_SYSTEM_TEMACS from cpp to autoconf.
* configure.in (LD_SWITCH_SYSTEM_TEMACS): New output variable. * src/s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in. * src/s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove. (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in. * src/Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure. (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/Makefile.in11
-rw-r--r--src/s/aix4-2.h3
-rw-r--r--src/s/darwin.h13
4 files changed, 11 insertions, 22 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 33d550e7824..cbd5088e173 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12010-05-04 Glenn Morris <rgm@gnu.org> 12010-05-04 Glenn Morris <rgm@gnu.org>
2 2
3 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
5 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
6 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
7 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8
3 * s/aix4-2.h (C_SWITCH_SYSTEM): 9 * s/aix4-2.h (C_SWITCH_SYSTEM):
4 * m/alpha.h (C_SWITCH_MACHINE): 10 * m/alpha.h (C_SWITCH_MACHINE):
5 Move to configure.in. 11 Move to configure.in.
diff --git a/src/Makefile.in b/src/Makefile.in
index 220eac61c1f..fd6493aee29 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -74,6 +74,9 @@ CRT_DIR=@CRT_DIR@
74C_SWITCH_MACHINE=@C_SWITCH_MACHINE@ 74C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
75## System-specific CFLAGS. 75## System-specific CFLAGS.
76C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ 76C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
77## This holds any special options for linking temacs only (ie, not
78## used by configure).
79LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@
77 80
78LIBTIFF=@LIBTIFF@ 81LIBTIFF=@LIBTIFF@
79LIBJPEG=@LIBJPEG@ 82LIBJPEG=@LIBJPEG@
@@ -201,12 +204,6 @@ DEPFLAGS = -MMD -MF deps/$*.d
201#endif /* (defined (BSD_SYSTEM) && !defined (COFF)) */ 204#endif /* (defined (BSD_SYSTEM) && !defined (COFF)) */
202#endif /* LD_SWITCH_SYSTEM */ 205#endif /* LD_SWITCH_SYSTEM */
203 206
204/* This holds special options for linking temacs
205 that should be used for linking anything else. */
206#ifndef LD_SWITCH_SYSTEM_TEMACS
207#define LD_SWITCH_SYSTEM_TEMACS
208#endif
209
210/* These macros are for switches specifically related to X Windows. */ 207/* These macros are for switches specifically related to X Windows. */
211#ifndef LD_SWITCH_X_SITE 208#ifndef LD_SWITCH_X_SITE
212#define LD_SWITCH_X_SITE 209#define LD_SWITCH_X_SITE
@@ -326,7 +323,7 @@ LD=ld
326/* Flags to pass to LD only for temacs. */ 323/* Flags to pass to LD only for temacs. */
327/* Do not split this line with a backslash. That can cause trouble with 324/* Do not split this line with a backslash. That can cause trouble with
328 some cpps. */ 325 some cpps. */
329TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS 326TEMACS_LDFLAGS = LD_SWITCH_SYSTEM $(LD_SWITCH_SYSTEM_TEMACS)
330 327
331/* A macro which other sections of Makefile can redefine to munge the 328/* A macro which other sections of Makefile can redefine to munge the
332 flags before they are passed to LD. This is helpful if you have 329 flags before they are passed to LD. This is helpful if you have
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index f6ed94828d4..b7de0312f7b 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -100,9 +100,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
100#define LIBS_SYSTEM -lrts -lIM -liconv 100#define LIBS_SYSTEM -lrts -lIM -liconv
101#endif 101#endif
102 102
103#define LD_SWITCH_SYSTEM_TEMACS -Wl,-bnodelcsect
104
105
106 103
107/* Use terminfo instead of termcap. */ 104/* Use terminfo instead of termcap. */
108 105
diff --git a/src/s/darwin.h b/src/s/darwin.h
index 060e354dca7..de8369ddae2 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -163,13 +163,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
163/* Definitions for how to compile & link. */ 163/* Definitions for how to compile & link. */
164 164
165#ifdef HAVE_NS 165#ifdef HAVE_NS
166#define LIBS_NSGUI -framework AppKit
167#define SYSTEM_PURESIZE_EXTRA 200000 166#define SYSTEM_PURESIZE_EXTRA 200000
168#define HEADERPAD_EXTRA 6C8 167#endif
169#else /* !HAVE_NS */
170#define LIBS_NSGUI
171#define HEADERPAD_EXTRA 690
172#endif /* !HAVE_NS */
173 168
174/* On Darwin, res_init appears not to be useful: see bug#562 and 169/* On Darwin, res_init appears not to be useful: see bug#562 and
175 http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html */ 170 http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html */
@@ -177,12 +172,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
177#undef HAVE_RES_INIT 172#undef HAVE_RES_INIT
178#undef HAVE_LIBRESOLV 173#undef HAVE_LIBRESOLV
179 174
180/* The -headerpad option tells ld (see man page) to leave room at the
181 end of the header for adding load commands. Needed for dumping.
182 0x690 is the total size of 30 segment load commands (at 56
183 each); under Cocoa 31 commands are required. */
184#define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_NSGUI -Xlinker -headerpad -Xlinker HEADERPAD_EXTRA
185
186#ifdef emacs 175#ifdef emacs
187#define malloc unexec_malloc 176#define malloc unexec_malloc
188#define realloc unexec_realloc 177#define realloc unexec_realloc