diff options
| author | Glenn Morris | 2010-05-25 23:41:58 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-25 23:41:58 -0700 |
| commit | 90278cb61102b1bcf2c9a2837cb301af06a18127 (patch) | |
| tree | 4ecd18fa52c2317a32ab158489880080853a2507 | |
| parent | 021eb8d750547099c7edcb537f46478276d7dc8c (diff) | |
| download | emacs-90278cb61102b1bcf2c9a2837cb301af06a18127.tar.gz emacs-90278cb61102b1bcf2c9a2837cb301af06a18127.zip | |
Replace YMF_PASS_LDFLAGS with autoconf.
* configure.in (YMF_PASS_LDFLAGS): Remove.
(PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): New output variables.
* configure: Regenerate.
* src/Makefile.in (YMF_PASS_LDFLAGS): Remove.
(temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
* msdos/sed1v2.inp (@PRE_EDIT_LDFLAGS@, @POST_EDIT_LDFLAGS@): Edit to nothing.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rwxr-xr-x | configure | 17 | ||||
| -rw-r--r-- | configure.in | 16 | ||||
| -rw-r--r-- | msdos/ChangeLog | 4 | ||||
| -rw-r--r-- | msdos/sed1v2.inp | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/Makefile.in | 8 |
7 files changed, 34 insertions, 19 deletions
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-05-26 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-26 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * configure.in (YMF_PASS_LDFLAGS): Remove. | ||
| 4 | (PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS): New output variables. | ||
| 5 | |||
| 3 | * configure.in (CPPFLAGS, CFLAGS, REAL_CFLAGS): | 6 | * configure.in (CPPFLAGS, CFLAGS, REAL_CFLAGS): |
| 4 | Add $GNUSTEP_LOCAL_HEADERS. | 7 | Add $GNUSTEP_LOCAL_HEADERS. |
| 5 | (LDFLAGS, LD_SWITCH_SYSTEM_TEMACS): Add $GNUSTEP_LOCAL_LIBRARIES. | 8 | (LDFLAGS, LD_SWITCH_SYSTEM_TEMACS): Add $GNUSTEP_LOCAL_LIBRARIES. |
| @@ -818,7 +818,8 @@ CYGWIN_OBJ | |||
| 818 | PRE_ALLOC_OBJ | 818 | PRE_ALLOC_OBJ |
| 819 | POST_ALLOC_OBJ | 819 | POST_ALLOC_OBJ |
| 820 | LD_SWITCH_SYSTEM_TEMACS | 820 | LD_SWITCH_SYSTEM_TEMACS |
| 821 | YMF_PASS_LDFLAGS | 821 | PRE_EDIT_LDFLAGS |
| 822 | POST_EDIT_LDFLAGS | ||
| 822 | LINKER | 823 | LINKER |
| 823 | LIB_GCC | 824 | LIB_GCC |
| 824 | MOUSE_SUPPORT | 825 | MOUSE_SUPPORT |
| @@ -26655,11 +26656,9 @@ case "$opsys" in | |||
| 26655 | ;; | 26656 | ;; |
| 26656 | esac | 26657 | esac |
| 26657 | 26658 | ||
| 26658 | ## A macro which other sections of Makefile can redefine to munge the | 26659 | |
| 26659 | ## flags before they are passed to LD. This is helpful if you have | 26660 | PRE_EDIT_LDFLAGS= |
| 26660 | ## redefined LD to something odd, like "gcc". | 26661 | POST_EDIT_LDFLAGS= |
| 26661 | ## (The YMF prefix is a holdover from the old name "ymakefile".) | ||
| 26662 | YMF_PASS_LDFLAGS=flags | ||
| 26663 | if test "x$ORDINARY_LINK" = "xyes"; then | 26662 | if test "x$ORDINARY_LINK" = "xyes"; then |
| 26664 | 26663 | ||
| 26665 | LINKER="\$(CC)" | 26664 | LINKER="\$(CC)" |
| @@ -26687,11 +26686,13 @@ elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then | |||
| 26687 | ## shell''s ``for'' construct. Note that sane people do not have '.' in | 26686 | ## shell''s ``for'' construct. Note that sane people do not have '.' in |
| 26688 | ## their paths, so we must use ./prefix-args. | 26687 | ## their paths, so we must use ./prefix-args. |
| 26689 | ## TODO either make prefix-args check ORDINARY_LINK internally, | 26688 | ## TODO either make prefix-args check ORDINARY_LINK internally, |
| 26690 | ## or remove it altogether (bug#6184), removing the need for this macro. | 26689 | ## or remove it altogether (bug#6184), removing the need for this hack. |
| 26691 | YMF_PASS_LDFLAGS='`./prefix-args -Xlinker flags`' | 26690 | PRE_EDIT_LDFLAGS='`./prefix-args -Xlinker' |
| 26691 | POST_EDIT_LDFLAGS='`' | ||
| 26692 | fi | 26692 | fi |
| 26693 | 26693 | ||
| 26694 | 26694 | ||
| 26695 | |||
| 26695 | test "x$LINKER" = "x" && LINKER=ld | 26696 | test "x$LINKER" = "x" && LINKER=ld |
| 26696 | ## FIXME? What setting of YMF_PASS_LDFLAGS should this have? | 26697 | ## FIXME? What setting of YMF_PASS_LDFLAGS should this have? |
| 26697 | test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic" | 26698 | test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic" |
diff --git a/configure.in b/configure.in index 01b52e3e38a..7cdf520dc5d 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3335,11 +3335,9 @@ case "$opsys" in | |||
| 3335 | ;; | 3335 | ;; |
| 3336 | esac | 3336 | esac |
| 3337 | 3337 | ||
| 3338 | ## A macro which other sections of Makefile can redefine to munge the | 3338 | |
| 3339 | ## flags before they are passed to LD. This is helpful if you have | 3339 | PRE_EDIT_LDFLAGS= |
| 3340 | ## redefined LD to something odd, like "gcc". | 3340 | POST_EDIT_LDFLAGS= |
| 3341 | ## (The YMF prefix is a holdover from the old name "ymakefile".) | ||
| 3342 | YMF_PASS_LDFLAGS=flags | ||
| 3343 | if test "x$ORDINARY_LINK" = "xyes"; then | 3341 | if test "x$ORDINARY_LINK" = "xyes"; then |
| 3344 | 3342 | ||
| 3345 | LINKER="\$(CC)" | 3343 | LINKER="\$(CC)" |
| @@ -3363,10 +3361,12 @@ elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then | |||
| 3363 | ## shell''s ``for'' construct. Note that sane people do not have '.' in | 3361 | ## shell''s ``for'' construct. Note that sane people do not have '.' in |
| 3364 | ## their paths, so we must use ./prefix-args. | 3362 | ## their paths, so we must use ./prefix-args. |
| 3365 | ## TODO either make prefix-args check ORDINARY_LINK internally, | 3363 | ## TODO either make prefix-args check ORDINARY_LINK internally, |
| 3366 | ## or remove it altogether (bug#6184), removing the need for this macro. | 3364 | ## or remove it altogether (bug#6184), removing the need for this hack. |
| 3367 | YMF_PASS_LDFLAGS='`./prefix-args -Xlinker flags`' | 3365 | PRE_EDIT_LDFLAGS='`./prefix-args -Xlinker' |
| 3366 | POST_EDIT_LDFLAGS='`' | ||
| 3368 | fi | 3367 | fi |
| 3369 | AC_SUBST(YMF_PASS_LDFLAGS) | 3368 | AC_SUBST(PRE_EDIT_LDFLAGS) |
| 3369 | AC_SUBST(POST_EDIT_LDFLAGS) | ||
| 3370 | 3370 | ||
| 3371 | test "x$LINKER" = "x" && LINKER=ld | 3371 | test "x$LINKER" = "x" && LINKER=ld |
| 3372 | ## FIXME? What setting of YMF_PASS_LDFLAGS should this have? | 3372 | ## FIXME? What setting of YMF_PASS_LDFLAGS should this have? |
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index db8a37896b8..b868d714295 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-05-26 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-26 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * sed1v2.inp (@PRE_EDIT_LDFLAGS@, @POST_EDIT_LDFLAGS@): Edit to nothing. | ||
| 4 | |||
| 3 | * sed1v2.inp (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): | 5 | * sed1v2.inp (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): |
| 4 | No longer present. | 6 | No longer present. |
| 5 | 7 | ||
| @@ -9,7 +11,7 @@ | |||
| 9 | 11 | ||
| 10 | 2010-05-21 Glenn Morris <rgm@gnu.org> | 12 | 2010-05-21 Glenn Morris <rgm@gnu.org> |
| 11 | 13 | ||
| 12 | * sed1v2.inp(@ns_frag@): Edit to nothing. | 14 | * sed1v2.inp (@ns_frag@): Edit to nothing. |
| 13 | 15 | ||
| 14 | * sed1x.inp (OLDXMENU): Replace any initial value. | 16 | * sed1x.inp (OLDXMENU): Replace any initial value. |
| 15 | * sed1v2.inp (OLDXMENU): Edit to "nothing". | 17 | * sed1v2.inp (OLDXMENU): Edit to "nothing". |
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index eec6be62195..6b85d986ecf 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp | |||
| @@ -147,6 +147,8 @@ s/\.h\.in/.h-in/ | |||
| 147 | s/@YMF_PASS_LDFLAGS@/flags/ | 147 | s/@YMF_PASS_LDFLAGS@/flags/ |
| 148 | s/@deps_frag@// | 148 | s/@deps_frag@// |
| 149 | s/@ns_frag@// | 149 | s/@ns_frag@// |
| 150 | s/@PRE_EDIT_LDFLAGS@// | ||
| 151 | s/@POST_EDIT_LDFLAGS@// | ||
| 150 | s/bootstrap-emacs/b-emacs/ | 152 | s/bootstrap-emacs/b-emacs/ |
| 151 | s/bootstrap-temacs/b-temacs/ | 153 | s/bootstrap-temacs/b-temacs/ |
| 152 | s/bootstrap-doc/b-doc/ | 154 | s/bootstrap-doc/b-doc/ |
diff --git a/src/ChangeLog b/src/ChangeLog index ba513b1bcf2..83d2e956af6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-05-26 Glenn Morris <rgm@gnu.org> | 1 | 2010-05-26 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * Makefile.in (YMF_PASS_LDFLAGS): Remove. | ||
| 4 | (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS. | ||
| 5 | |||
| 3 | * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): | 6 | * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): |
| 4 | Remove. | 7 | Remove. |
| 5 | (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS. | 8 | (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS. |
diff --git a/src/Makefile.in b/src/Makefile.in index bbe573e69be..ea84fa08429 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -634,10 +634,14 @@ ${libsrc}make-docfile${EXEEXT}: | |||
| 634 | buildobj.h: Makefile | 634 | buildobj.h: Makefile |
| 635 | echo "#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h | 635 | echo "#define BUILDOBJ \"${obj} ${otherobj} " "\"" > buildobj.h |
| 636 | 636 | ||
| 637 | #define YMF_PASS_LDFLAGS(flags) @YMF_PASS_LDFLAGS@ | ||
| 638 | 637 | ||
| 638 | /* We cannot define variables for PRE_EDIT and POST_EDIT. | ||
| 639 | If !ORDINARY_LINK && !LINKER && GCC, they add a | ||
| 640 | \`./prefix-args -Xlinker ... \` wrapper, otherwise they are empty. | ||
| 641 | One alternative to this approach would be to always call prefix-args, | ||
| 642 | and have it DTRT in all cases, by testing the above defines. */ | ||
| 639 | temacs${EXEEXT}: $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT} | 643 | temacs${EXEEXT}: $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT} |
| 640 | $(LD) YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} ) \ | 644 | $(LD) @PRE_EDIT_LDFLAGS@ ${TEMACS_LDFLAGS} @POST_EDIT_LDFLAGS@ \ |
| 641 | ${TEMACS_LDFLAGS2} \ | 645 | ${TEMACS_LDFLAGS2} \ |
| 642 | -o temacs ${START_FILES} ${obj} ${otherobj} ${LIBES} | 646 | -o temacs ${START_FILES} ${obj} ${otherobj} ${LIBES} |
| 643 | 647 | ||