sysroot and lib-path
Alan Modra
amodra@gmail.com
Fri Nov 9 13:10:00 GMT 2018
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
More information about the Binutils
mailing list