diff options
| author | Dan Nicolaescu | 2010-04-20 22:33:24 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-04-20 22:33:24 -0700 |
| commit | 4285ac5ac002f0a705baca4b4903668b271ee3d5 (patch) | |
| tree | dd1f9201c6f9e36c0fe7687c9d7b5cf2f91f8ef4 | |
| parent | fcc9374695394ec4733c3cb922cd841ac1fdbff1 (diff) | |
| download | emacs-4285ac5ac002f0a705baca4b4903668b271ee3d5.tar.gz emacs-4285ac5ac002f0a705baca4b4903668b271ee3d5.zip | |
Simplify LD_SWITCH_SYSTEM_TEMACS usage.
* s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
* s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
detects -znocombreloc and passes it to the linker
* s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/s/freebsd.h | 8 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 10 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 5 |
4 files changed, 10 insertions, 21 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 716e6240320..f1c51c7255a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2010-04-21 Dan Nicolaescu <local_user@dannlt> | ||
| 2 | |||
| 3 | Simplify LD_SWITCH_SYSTEM_TEMACS usage. | ||
| 4 | * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS): | ||
| 5 | * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure | ||
| 6 | detects -znocombreloc and passes it to the linker | ||
| 7 | * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty. | ||
| 8 | |||
| 1 | 2010-04-21 Glenn Morris <rgm@gnu.org> | 9 | 2010-04-21 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef. | 11 | * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef. |
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index e8a630019fb..ce90f3f99e0 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -113,13 +113,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 113 | 113 | ||
| 114 | #define POSIX_SIGNALS 1 | 114 | #define POSIX_SIGNALS 1 |
| 115 | 115 | ||
| 116 | /* The `combreloc' setting became the default, and it seems to be | ||
| 117 | incompatible with unexec. Symptom is an immediate SEGV in | ||
| 118 | XtInitializeWidget when starting Emacs under X11. */ | ||
| 119 | |||
| 120 | #if defined __FreeBSD_version && __FreeBSD_version >= 500042 | ||
| 121 | #define LD_SWITCH_SYSTEM_TEMACS -znocombreloc | ||
| 122 | #endif | ||
| 123 | |||
| 124 | /* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb | 116 | /* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb |
| 125 | (do not change this comment) */ | 117 | (do not change this comment) */ |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index b9139435f61..a55fbcb9821 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -179,12 +179,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 179 | #define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX | 179 | #define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX |
| 180 | #endif /* __mips__ */ | 180 | #endif /* __mips__ */ |
| 181 | 181 | ||
| 182 | /* Link temacs with -z nocombreloc so that unexec works right, whether or | ||
| 183 | not -z combreloc is the default. GNU ld ignores unknown -z KEYWORD | ||
| 184 | switches, so this also works with older versions that don't implement | ||
| 185 | -z combreloc. */ | ||
| 186 | #define LD_SWITCH_SYSTEM_TEMACS -z nocombreloc | ||
| 187 | |||
| 188 | #ifdef emacs | 182 | #ifdef emacs |
| 189 | #define INTERRUPT_INPUT | 183 | #define INTERRUPT_INPUT |
| 190 | #endif | 184 | #endif |
| @@ -201,7 +195,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 201 | /* _BSD_SOURCE is redundant, at least in glibc2, since we define | 195 | /* _BSD_SOURCE is redundant, at least in glibc2, since we define |
| 202 | _GNU_SOURCE. Left in in case it's relevant to libc5 systems and | 196 | _GNU_SOURCE. Left in in case it's relevant to libc5 systems and |
| 203 | anyone's still using Emacs on those. --fx 2002-12-14 */ | 197 | anyone's still using Emacs on those. --fx 2002-12-14 */ |
| 204 | #define C_SWITCH_SYSTEM -D_BSD_SOURCE | 198 | /* #define C_SWITCH_SYSTEM -D_BSD_SOURCE */ |
| 205 | 199 | ||
| 206 | /* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed. */ | 200 | /* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed. */ |
| 207 | #define LIB_MOTIF -lXm -lXpm | 201 | #define LIB_MOTIF -lXm -lXpm |
| @@ -223,7 +217,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 223 | /* Use BSD process groups, but use setpgid() instead of setpgrp() to | 217 | /* Use BSD process groups, but use setpgid() instead of setpgrp() to |
| 224 | actually set a process group. */ | 218 | actually set a process group. */ |
| 225 | /* Interesting: only GNU/Linux defines this, but the BSDs do not... */ | 219 | /* Interesting: only GNU/Linux defines this, but the BSDs do not... */ |
| 226 | #define BSD_PGRPS | 220 | /* #define BSD_PGRPS */ |
| 227 | 221 | ||
| 228 | #define NARROWPROTO 1 | 222 | #define NARROWPROTO 1 |
| 229 | 223 | ||
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index e56b25ecaee..e670951fecc 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -105,11 +105,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 105 | /* This triggers a conditional in xfaces.c. */ | 105 | /* This triggers a conditional in xfaces.c. */ |
| 106 | #define XOS_NEEDS_TIME_H | 106 | #define XOS_NEEDS_TIME_H |
| 107 | 107 | ||
| 108 | /* Don't use shared libraries. unexec doesn't handle them. | ||
| 109 | Note GCC automatically passes -a archive to ld, and it has its own | ||
| 110 | conflicting -a. */ | ||
| 111 | #define LD_SWITCH_SYSTEM_TEMACS | ||
| 112 | |||
| 113 | #ifndef HAVE_LIBXMU | 108 | #ifndef HAVE_LIBXMU |
| 114 | /* HP-UX doesn't supply Xmu. */ | 109 | /* HP-UX doesn't supply Xmu. */ |
| 115 | #define LIBXMU | 110 | #define LIBXMU |