aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-05-24 20:53:12 -0700
committerGlenn Morris2010-05-24 20:53:12 -0700
commit8009a5e891cdd300e594812e71e7997592bd7c04 (patch)
treeb010c73286087702d8d060c2c08b0685dd25f896
parente545800352a38dc328cc5251bb44d1e93d0d2012 (diff)
downloademacs-8009a5e891cdd300e594812e71e7997592bd7c04.tar.gz
emacs-8009a5e891cdd300e594812e71e7997592bd7c04.zip
Move some stuff from LD_SWITCH_SYSTEM to LD_SWITCH_SYSTEM_TEMACS.
* configure.in (LD_SWITCH_SYSTEM): Move some gnu-linux stuff... (LD_SWITCH_SYSTEM_TEMACS): ... to here. * src/Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some variables it may reference.
-rw-r--r--ChangeLog3
-rw-r--r--configure.in82
-rw-r--r--src/ChangeLog3
-rw-r--r--src/Makefile.in12
4 files changed, 57 insertions, 43 deletions
diff --git a/ChangeLog b/ChangeLog
index c5fcd5c985d..0d014c28931 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
12010-05-25 Glenn Morris <rgm@gnu.org> 12010-05-25 Glenn Morris <rgm@gnu.org>
2 2
3 * configure.in (LD_SWITCH_SYSTEM): Move some gnu-linux stuff...
4 (LD_SWITCH_SYSTEM_TEMACS): ... to here.
5
3 * configure.in (LD_SWITCH_SYSTEM_EXTRA): Remove. 6 * configure.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4 (LD_SWITCH_SYSTEM_TEMACS): Put darwin stuff from LD_SWITCH_SYSTEM_EXTRA 7 (LD_SWITCH_SYSTEM_TEMACS): Put darwin stuff from LD_SWITCH_SYSTEM_EXTRA
5 here instead. 8 here instead.
diff --git a/configure.in b/configure.in
index 59929bbcde3..13b550e005c 100644
--- a/configure.in
+++ b/configure.in
@@ -955,16 +955,17 @@ AC_SUBST(LD_SWITCH_SYSTEM)
955 955
956ac_link="$ac_link $LD_SWITCH_SYSTEM" 956ac_link="$ac_link $LD_SWITCH_SYSTEM"
957 957
958## This is fun. Some settings of LD_SWITCH_SYSTEM reference 958## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
959## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using 959## which has not been defined yet. When this was handled with cpp,
960## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different 960## it was expanded to null when configure sourced the s/*.h file.
961## values in configure and the Makefiles. How helpful. 961## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
962## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead? 962## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
963## (or somesuch), but because it is supposed to go at the _front_
964## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
965## Compare with the gnu-linux case below, which added to the end
966## of LD_SWITCH_SYSTEM, and so can instead go at the front of
967## LD_SWITCH_SYSTEM_TEMACS.
963case "$opsys" in 968case "$opsys" in
964 gnu-linux)
965 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
966 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
967
968 netbsd|openbsd) 969 netbsd|openbsd)
969 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R. 970 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
970 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;; 971 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
@@ -3272,33 +3273,41 @@ case "$opsys" in
3272 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;; 3273 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
3273 3274
3274 darwin) 3275 darwin)
3275 ## The -headerpad option tells ld (see man page) to leave room at the 3276 ## The -headerpad option tells ld (see man page) to leave room at the
3276 ## end of the header for adding load commands. Needed for dumping. 3277 ## end of the header for adding load commands. Needed for dumping.
3277 ## 0x690 is the total size of 30 segment load commands (at 56 3278 ## 0x690 is the total size of 30 segment load commands (at 56
3278 ## each); under Cocoa 31 commands are required. 3279 ## each); under Cocoa 31 commands are required.
3279 if test "$HAVE_NS" = "yes"; then 3280 if test "$HAVE_NS" = "yes"; then
3280 libs_nsgui="-framework AppKit" 3281 libs_nsgui="-framework AppKit"
3281 headerpad_extra=6C8 3282 headerpad_extra=6C8
3282 else 3283 else
3283 libs_nsgui= 3284 libs_nsgui=
3284 headerpad_extra=690 3285 headerpad_extra=690
3285 fi 3286 fi
3286 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" 3287 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
3287 3288
3288 ## This is here because src/Makefile.in did some extra fiddling around 3289 ## This is here because src/Makefile.in did some extra fiddling around
3289 ## with LD_SWITCH_SYSTEM. The cpp logic was: 3290 ## with LD_SWITCH_SYSTEM. The cpp logic was:
3290 ## #ifndef LD_SWITCH_SYSTEM 3291 ## #ifndef LD_SWITCH_SYSTEM
3291 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) 3292 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
3292 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to: 3293 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
3293 ## not using gcc, darwin system not on an alpha (ie darwin, since 3294 ## not using gcc, darwin system not on an alpha (ie darwin, since
3294 ## darwin + alpha does not occur). 3295 ## darwin + alpha does not occur).
3295 ## Because this was done in src/Makefile.in, the resulting part of 3296 ## Because this was done in src/Makefile.in, the resulting part of
3296 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link). 3297 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
3297 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS, 3298 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
3298 ## rather than LD_SWITCH_SYSTEM. 3299 ## rather than LD_SWITCH_SYSTEM.
3299 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \ 3300 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
3300 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS" 3301 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
3301 ;; 3302 ;;
3303
3304 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
3305 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
3306 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
3307 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
3308 ## had different values in configure (in ac_link) and src/Makefile.in.
3309 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
3310 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
3302 3311
3303 *) LD_SWITCH_SYSTEM_TEMACS= ;; 3312 *) LD_SWITCH_SYSTEM_TEMACS= ;;
3304esac 3313esac
@@ -3783,7 +3792,6 @@ for dir in etc lisp ; do
3783done 3792done
3784 3793
3785# Build src/Makefile from ${srcdir}/src/Makefile.c 3794# Build src/Makefile from ${srcdir}/src/Makefile.c
3786# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
3787# This must be done after src/config.h is built, since we rely on that file. 3795# This must be done after src/config.h is built, since we rely on that file.
3788 3796
3789echo creating src/epaths.h 3797echo creating src/epaths.h
diff --git a/src/ChangeLog b/src/ChangeLog
index 79d8946e954..541ed72bddb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12010-05-25 Glenn Morris <rgm@gnu.org> 12010-05-25 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4 variables it may reference.
5
3 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove. 6 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA. 7 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
5 8
diff --git a/src/Makefile.in b/src/Makefile.in
index 0bb36ecb838..2ed5ca4bfd4 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -96,12 +96,6 @@ C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
96## substituted in this or any other Makefile. Cf C_SWITCH_X_SITE. 96## substituted in this or any other Makefile. Cf C_SWITCH_X_SITE.
97LD_SWITCH_X_SITE= 97LD_SWITCH_X_SITE=
98 98
99## This holds any special options for linking temacs only (ie, not
100## used by configure). Not used elsewhere because it sometimes
101## contains options that have to do with using Emacs's crt0,
102## which are only good with temacs.
103LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@
104
105## Next two must come before LD_SWITCH_SYSTEM. 99## Next two must come before LD_SWITCH_SYSTEM.
106## If needed, a -R option that says where to find X windows at run time. 100## If needed, a -R option that says where to find X windows at run time.
107LD_SWITCH_X_SITE_AUX=@LD_SWITCH_X_SITE_AUX@ 101LD_SWITCH_X_SITE_AUX=@LD_SWITCH_X_SITE_AUX@
@@ -111,6 +105,12 @@ LD_SWITCH_X_SITE_AUX_RPATH=@LD_SWITCH_X_SITE_AUX_RPATH@
111## System-specific LDFLAGS. 105## System-specific LDFLAGS.
112LD_SWITCH_SYSTEM=@LD_SWITCH_SYSTEM@ 106LD_SWITCH_SYSTEM=@LD_SWITCH_SYSTEM@
113 107
108## This holds any special options for linking temacs only (ie, not
109## used by configure). Not used elsewhere because it sometimes
110## contains options that have to do with using Emacs's crt0,
111## which are only good with temacs.
112LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@
113
114## Flags to pass to ld only for temacs. 114## Flags to pass to ld only for temacs.
115TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS) 115TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS)
116 116