This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: sysroot and lib-path
- From: Christer Solskogen <christer dot solskogen at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 9 Nov 2018 09:55:28 +0100
- Subject: Re: sysroot and lib-path
- References: <ps0o58$971$1@blaine.gmane.org> <20181109001553.GX29482@bubble.grove.modra.org>
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