This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: sysroot and lib-path
- From: Alan Modra <amodra at gmail dot com>
- To: Christer Solskogen <christer dot solskogen at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 9 Nov 2018 23:40:21 +1030
- Subject: Re: sysroot and lib-path
- References: <ps0o58$971$1@blaine.gmane.org> <20181109001553.GX29482@bubble.grove.modra.org> <ps3hts$3kn$1@blaine.gmane.org>
On Fri, Nov 09, 2018 at 09:55:28AM +0100, Christer Solskogen wrote:
> Okay, but why does it also have
> SEARCH_DIR("=/opt/cross/arm-linux-gnueabihf/lib") then? That doesn't make
> sense, does it?
That's $prefix/$target/lib. Note that it's inside the sysroot too.
So in your case the host directory searched would be
/opt/cross/sysroot.arm-linux-gnueabihf/opt/cross/arm-linux-gnueabihf/lib
$prefix/$target was an idea that predated sysroot for a place to put
target and tool specific info. You might see that directory
referred to as tooldir.
--
Alan Modra
Australia Development Lab, IBM