unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* don't process $(LDFLAGS) with prefix-args
@ 2003-03-26 22:31 Paul Jarc
  2003-03-27 19:04 ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Jarc @ 2003-03-26 22:31 UTC (permalink / raw)


Earlier versions of Emacs had a bug where user-supplied $(LDFLAGS)
would be processed by prefix-args when building temacs.  The bug was
fixed for 21.2 (or perhaps earlier), but it's back again in 21.3.

User-supplied $(LDFLAGS) is used with both $(CC) and, when building
temacs, $(LD).  Since it's used with $(CC), it may already contain
-Wl, or -Xlinker arguments.  So if $(LD) is $(CC) (with or without
-nostdlib), $(LDFLAGS) should not be re-escaped with -Xlinker.

If $(LD) is ld, then (currently) you're stuck; you can't pass anything
in $(LDFLAGS) except what is intelligible to both $(CC) and ld
directly.  This could be fixed by using prefix-args whenever we pass
$(LDFLAGS) to $(CC), but not when we pass $(LDFLAGS) to ld; then the
instructions would have to tell users to pass flags as they should
appear to ld, instead of as they should appear to $(CC).

The Makefile could be made to work this way on all systems: use
prefix-args whenever we pass $(LDFLAGS) to $(CC) (including when we
pass it to $(LD), on systems where $(LD) is $(CC)), but not when we
pass it to $(LD) if $(LD) is ld.  This is a tradeoff between
consistency across platforms and similarity with other packages on
systems where $(LD) is $(CC).


paul

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-28 18:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-26 22:31 don't process $(LDFLAGS) with prefix-args Paul Jarc
2003-03-27 19:04 ` Richard Stallman
2003-03-27 20:38   ` Paul Jarc
2003-03-28 15:21     ` Richard Stallman
2003-03-28 18:08     ` Paul Jarc

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).