diff options
| author | Glenn Morris | 2010-05-03 20:06:27 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-03 20:06:27 -0700 |
| commit | eb21eab59bbe301074cf478f43743d335254d97e (patch) | |
| tree | 93c30997ebe5045d6c933bc17c5f9e27f9bce7b5 /src/s | |
| parent | 496287859b525d24bf38ef19a38ea2fd7d309bd1 (diff) | |
| download | emacs-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/s')
| -rw-r--r-- | src/s/aix4-2.h | 3 | ||||
| -rw-r--r-- | src/s/darwin.h | 13 |
2 files changed, 1 insertions, 15 deletions
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 |