* [U-Boot-Users] Linker scripts, SEARCH_DIR and host directories
@ 2008-04-10 19:34 Richard Danter
2008-04-10 20:40 ` kenneth johansson
0 siblings, 1 reply; 2+ messages in thread
From: Richard Danter @ 2008-04-10 19:34 UTC (permalink / raw)
To: u-boot
Hi all,
Using a new toolchain I am seeing the following warnings at the final
link stage of U-Boot:
warning: library search path "/lib" is unsafe for cross-compilation
warning: library search path "/usr/lib" is unsafe for cross-compilation
warning: library search path "/usr/local/lib" is unsafe for cross-compilation
Looking further I can see in the u-boot.lds scripts that SEARCH_DIR is
specifying each of these directories. I am unsure why a cross-compiled
bootloader would specify that the linker should look in the hosts
directories for libraries.
Can anyone explain this?
Thanks
Rich
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] Linker scripts, SEARCH_DIR and host directories
2008-04-10 19:34 [U-Boot-Users] Linker scripts, SEARCH_DIR and host directories Richard Danter
@ 2008-04-10 20:40 ` kenneth johansson
0 siblings, 0 replies; 2+ messages in thread
From: kenneth johansson @ 2008-04-10 20:40 UTC (permalink / raw)
To: u-boot
On Thu, 2008-04-10 at 20:34 +0100, Richard Danter wrote:
> Hi all,
>
> Using a new toolchain I am seeing the following warnings at the final
> link stage of U-Boot:
>
> warning: library search path "/lib" is unsafe for cross-compilation
> warning: library search path "/usr/lib" is unsafe for cross-compilation
> warning: library search path "/usr/local/lib" is unsafe for cross-compilation
>
> Looking further I can see in the u-boot.lds scripts that SEARCH_DIR is
> specifying each of these directories. I am unsure why a cross-compiled
> bootloader would specify that the linker should look in the hosts
> directories for libraries.
>
> Can anyone explain this?
>
> Thanks
> Rich
You should delete that from the linker script. There is several scripts
that has this error it's not needed and wrong as you suspected.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-10 20:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-10 19:34 [U-Boot-Users] Linker scripts, SEARCH_DIR and host directories Richard Danter
2008-04-10 20:40 ` kenneth johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox