This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: LDFLAGS handling in V3


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]