PATCH: LDFLAGS handling in V3

Mark Mitchell mark@codesourcery.com
Sat Dec 31 06:18:00 GMT 2005


Alexandre Oliva wrote:

> Perhaps use -fsysroot instead, and arrange for your script to prefix
> only -f* flags with -Xcompiler, as opposed to handling everything
> except what you know to be special for libtool?  Or maybe extend to
> --* as well, since libtool doesn't handle double-dash arguments?
>  
>>Do you want me to try to skip the -Xcompiler for the options you list?
>  
> Definitely.  Not doing so would certainly break things.

I'm making a pass over my patch queue, trying to get things merged in.
So, I came back to this patch.

To refresh your memory, the point of this patch is that, at present,
putting "--sysroot=..." in LDFLAGS_FOR_TARGET at the top level does not
work, because libtool turns that into -Wl,--sysroot, which means the
driver never sees it, which means that it does not find things like
crt1.o.  We agreed that LDFLAGS_FOR_TARGET was meant to be options to
the driver, and that, therefore, we needed to specifically mark these
options with -Xcompiler when passing them to libtool.

I believe this version addresses the issues you spotted in your review:

http://gcc.gnu.org/ml/libstdc++/2005-10/msg00026.html

Tested on x86_64-unknown-linux-gnu; OK?

Thanks,

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(650) 331-3385 x713
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: v3.libtool.patch
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20051231/cfb5b797/attachment.ksh>


More information about the Libstdc++ mailing list