This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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


Daniel Jacobowitz wrote:
On Wed, Jul 27, 2005 at 04:48:40PM -0700, Mark Mitchell wrote:

I do  understand what you mean about quoting and about reusable scripts.
I suppose I could work on that, once we know what we want it to do.

So, I think we have to go this route.


Why bother quoting LDFLAGS - why not add a new variable containing the
--sysroot option, update target libraries to use it (a bit messy but
mechanical), and put --sysroot X -Wl,--sysroot,X in it iff we have
detected that GNU ld is being used and supports --sysroot?

Well, that would suit my immediate needs just fine. It wouldn't fix the general problem, though, in that things like -specs= in LDFLAGS_FOR_TARGET will still be ignored by libtool --mode=LINK. You're right, though; if there's no clear path forward, we can definitely just do as you suggest.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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