Le 08/03/2013 10:23, Matthew Burgess a écrit :
> On Thu, 07 Mar 2013 22:20:23 +0100, Pierre Labastie<pierre.labas...@neuf.fr>  
> wrote:
>
>> I really meant --with-sysroot. That switch is defined in ld's configure,
>> not the top one.
>> (it might be better to use --with-sysroot=/, but --with-sysroot
>> works for me).
Actually, looking at configure, passing --with-sysroot is equivalent to
--with-sysroot=/sys-root (or so). Passing --with-sysroot defines
a sysroot directory, but it also changes the behaviour of ld
in three respects:
- It allows to use the "--sysroot=<directory>" option when calling ld.
- It allows to specify '=/path' type paths to the -L option,
where = is replaced by the directory above (or the default one
specified at compile time).
- what was said in my earlier message.

So it might be better to pass --with-sysroot, so that the default
directory will be inexistant, which may avoid some non-understandable
behaviour (defaults are sometimes a plague when nobody
knows what they are...)

> I *always* forget about binutils' configure machinery allowing options to be 
> passed
> down to sub-configures that it doesn't understand itself :(
>
>> It changes the behavior of ld:
>> from "man ld":
> <snip>
>
> Thanks, sounds good then.  I'll look at adding this soon.
>
>
Thanks
Pierre

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to