PATCH: LDFLAGS handling in V3
Mark Mitchell
mark@codesourcery.com
Thu Jul 28 15:09:00 GMT 2005
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
More information about the Libstdc++
mailing list