This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: sysroot and lib-path


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


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