diff options
| author | Glenn Morris | 2010-05-16 10:58:27 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-16 10:58:27 -0700 |
| commit | 8877ca0fdc090b6506a95272c0e6f1e16c3b0571 (patch) | |
| tree | b8e3f61337d275e60c228a35b3855f30cf3bc43f /src | |
| parent | 5fdb74689d393b76a7a5edff57205ff27fcd7bc1 (diff) | |
| download | emacs-8877ca0fdc090b6506a95272c0e6f1e16c3b0571.tar.gz emacs-8877ca0fdc090b6506a95272c0e6f1e16c3b0571.zip | |
Simplify temacs build rule.
* configure.in (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New output variable.
(START_FILES): Set to empty if NS_IMPL_GNUSTEP.
(GNUSTEP_SYSTEM_HEADERS, GNUSTEP_SYSTEM_LIBRARIES): Do not output,
nothing uses.
* configure: Regenerate.
* src/Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
(NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
(LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
(temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
Make most of the NS_IMPL_GNUSTEP case the same as the default case.
* msdos/sed1v2.inp (GNUSTEP_SYSTEM_LIBRARIES): Remove.
(NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): Edit to empty.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/Makefile.in | 29 |
2 files changed, 25 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7b331c578af..e4f2b5f0db3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2010-05-16 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-16 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused. | ||
| 4 | (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure. | ||
| 5 | (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic. | ||
| 6 | (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced. | ||
| 7 | Make most of the NS_IMPL_GNUSTEP case the same as the default case. | ||
| 8 | |||
| 3 | * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]: | 9 | * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]: |
| 4 | Remove ${STARTFLAGS}, nothing ever sets it. | 10 | Remove ${STARTFLAGS}, nothing ever sets it. |
| 5 | 11 | ||
diff --git a/src/Makefile.in b/src/Makefile.in index c7d438695dd..5487cc5e10f 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -226,9 +226,8 @@ ns_appbindir=@ns_appbindir@/ | |||
| 226 | ns_appsrc=@ns_appsrc@ | 226 | ns_appsrc=@ns_appsrc@ |
| 227 | NS_OBJ=@NS_OBJ@ | 227 | NS_OBJ=@NS_OBJ@ |
| 228 | NS_SUPPORT=@NS_SUPPORT@ | 228 | NS_SUPPORT=@NS_SUPPORT@ |
| 229 | ## Next two only set if NS_IMPL_GNUSTEP. | 229 | ## Only set if NS_IMPL_GNUSTEP. |
| 230 | GNU_OBJC_CFLAGS=@GNU_OBJC_CFLAGS@ | 230 | GNU_OBJC_CFLAGS=@GNU_OBJC_CFLAGS@ |
| 231 | GNUSTEP_SYSTEM_LIBRARIES=@GNUSTEP_SYSTEM_LIBRARIES@ | ||
| 232 | 231 | ||
| 233 | ## Empty if !HAVE_X_WINDOWS | 232 | ## Empty if !HAVE_X_WINDOWS |
| 234 | ## xfont.o ftfont.o xftfont.o ftxfont.o if HAVE_XFT | 233 | ## xfont.o ftfont.o xftfont.o ftxfont.o if HAVE_XFT |
| @@ -287,6 +286,10 @@ DEPFLAGS = -MMD -MF deps/$*.d | |||
| 287 | /* If NS_IMPL_GNUSTEP, some definitions and includes are expanded here. */ | 286 | /* If NS_IMPL_GNUSTEP, some definitions and includes are expanded here. */ |
| 288 | @NS_IMPL_GNUSTEP_INC@ | 287 | @NS_IMPL_GNUSTEP_INC@ |
| 289 | 288 | ||
| 289 | /* FIXME move to LD_SWITCH_SYSTEM_TEMACS? | ||
| 290 | This uses ${CONFIG_SYSTEM_LIBS}, presumably set by the above include. */ | ||
| 291 | NS_IMPL_GNUSTEP_TEMACS_LDFLAGS=@NS_IMPL_GNUSTEP_TEMACS_LDFLAGS@ | ||
| 292 | |||
| 290 | /* DO NOT use -R. There is a special hack described in lastfile.c | 293 | /* DO NOT use -R. There is a special hack described in lastfile.c |
| 291 | which is used instead. Some initialized data areas are modified | 294 | which is used instead. Some initialized data areas are modified |
| 292 | at initial startup, then labeled as part of the text area when | 295 | at initial startup, then labeled as part of the text area when |
| @@ -357,6 +360,12 @@ LD=ld | |||
| 357 | 360 | ||
| 358 | #endif /* not ORDINARY_LINK */ | 361 | #endif /* not ORDINARY_LINK */ |
| 359 | 362 | ||
| 363 | |||
| 364 | #ifdef NS_IMPL_GNUSTEP | ||
| 365 | LD=$(CC) -rdynamic | ||
| 366 | #endif | ||
| 367 | |||
| 368 | |||
| 360 | /* lastfile must follow all files whose initialized data areas should | 369 | /* lastfile must follow all files whose initialized data areas should |
| 361 | be dumped as pure by dump-emacs. */ | 370 | be dumped as pure by dump-emacs. */ |
| 362 | obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \ | 371 | obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \ |
| @@ -670,16 +679,16 @@ ${libsrc}make-docfile${EXEEXT}: | |||
| 670 | buildobj.h: Makefile | 679 | buildobj.h: Makefile |
| 671 | echo "#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h | 680 | echo "#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h |
| 672 | 681 | ||
| 673 | /* FIXME LOCALCPP not defined or mentioned anywhere. */ | 682 | temacs${EXEEXT}: $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT} |
| 674 | temacs${EXEEXT}: $(LOCALCPP) $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT} | ||
| 675 | #ifdef NS_IMPL_GNUSTEP | 683 | #ifdef NS_IMPL_GNUSTEP |
| 676 | $(CC) -rdynamic YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} \ | 684 | $(LD) YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} \ |
| 677 | -L$(GNUSTEP_SYSTEM_LIBRARIES) -lgnustep-gui -lgnustep-base \ | 685 | ${NS_IMPL_GNUSTEP_TEMACS_LDFLAGS} ) \ |
| 678 | -lobjc $(CONFIG_SYSTEM_LIBS) -lpthread ) -o temacs \ | 686 | -o temacs ${START_FILES} ${obj} ${otherobj} ${LIBES} |
| 679 | ${obj} ${otherobj} ${LIBES} | ||
| 680 | #else | 687 | #else |
| 681 | $(LD) YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} ) $(LDFLAGS) \ | 688 | $(LD) YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} \ |
| 682 | -o temacs ${START_FILES} ${obj} ${otherobj} ${LIBES} | 689 | ${NS_IMPL_GNUSTEP_TEMACS_LDFLAGS} ) \ |
| 690 | ${LDFLAGS} \ | ||
| 691 | -o temacs ${START_FILES} ${obj} ${otherobj} ${LIBES} | ||
| 683 | #endif | 692 | #endif |
| 684 | 693 | ||
| 685 | prefix-args${EXEEXT}: prefix-args.o $(config_h) | 694 | prefix-args${EXEEXT}: prefix-args.o $(config_h) |