This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Default linker library search paths
Simon Richter <Simon.Richter@hogyros.de> writes:
> That is, the native compiler looks into
>
> /usr/include/$host_alias (multiarch)
> /usr/local/include/$host_alias (multiarch)
> /usr/include (standard)
> /usr/local/include (standard)
>
> for includes and s/include/lib/ for libraries.
>
> Cross compilers are expected to search
>
> /usr/include/$target_alias (multiarch)
> /usr/local/include/$target_alias (multiarch)
> /usr/$target_alias/include (standard)
> /usr/local/$target_alias/include (standard)
>
> With --sysroot, the sysroot prefix is prepended to this path.
With sysroot the target-native paths prefixed with the sysroot are used
for all target libraries and includes.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."