PATCH: LDFLAGS handling in V3
Daniel Jacobowitz
drow@false.org
Wed Jul 27 21:53:00 GMT 2005
On Wed, Jul 27, 2005 at 02:35:17PM -0700, Mark Mitchell wrote:
> However, since the linker is actually libtool, rather than the
> ordinary linker, I think that the LDFLAGS should be prefixed with
> "-Wl,". Otherwise, libtool will disregard some, but not all, of the
> flags provided, and will invoke the linker (well, "xgcc") without all
> of the options. (An example of an option which libtool will ignore is
> "--sysroot".) I guess that libtool could be made to recognize more
> options and know that they are for the linker, as well as the
> compiler, but it seems better just to bullet-proof the Makefiles. You
> could also argue that the user should just put "-Wl," explicitly into
> LDFLAGS/LDFLAGS_FOR_TARGET when running "make", but that wouldn't work
> at the top level if you had some target subdirectories using libtool
> and others using "ld" directly.
That would be a bug. LDFLAGS are intended to be compiler driver
options; that's not a new requirement.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Libstdc++
mailing list