sysroot and lib-path
Christer Solskogen
christer.solskogen@gmail.com
Fri Nov 9 08:55:00 GMT 2018
On 09.11.2018 01:15, Alan Modra wrote:
> You don't get the first SEARCH_DIR line you show if you are using the
> FSF binutils sources with the configure options you state. I suspect
> you also configured with --prefix=/opt/cross.
Yes, I only pasted what I thought was the relevant configure options. Sorry.
>
>> Why is directories on the host in SEARCH_DIR? And not
>> $sysroot/lib:$sysroot:usr/lib ?
>
> But these are all in the sysroot. The sysroot is substituted for the
> '=' in the search paths by ld. This allows ld's configure time
> sysroot to be overridden on the ld command line with --sysroot=.
>
Okay, but why does it also have
SEARCH_DIR("=/opt/cross/arm-linux-gnueabihf/lib") then? That doesn't
make sense, does it?
Last, but not least. Thanks for your reply, I didn't know that the = is
substituted.
--
chs
More information about the Binutils
mailing list