crosstool switching to /lib + /usr/lib ?
Charlie Brady
charlieb-crossgcc@e-smith.com
Wed Jan 14 17:02:00 GMT 2004
On Wed, 14 Jan 2004, Kai Ruottu wrote:
> The new symlink didn't help and when looking at the linking phase with the
> '-verbose' option (giving '-Wl,-verbose' on compile command line), it told
> what the reason is:
>
> ---------------------- clip --------------------------------------
> GNU ld version 2.14.90.0.7 20031029
> Supported emulations:
> elf_x86_64
> elf_i386
> i386linux
> using internal linker script:
> ==================================================
> /* Script for -z combreloc: combine and sort reloc sections */
> OUTPUT_FORMAT("elf32-i386", "elf32-i386",
> "elf32-i386")
> OUTPUT_ARCH(i386)
> ENTRY(_start)
> SEARCH_DIR("/usr/local/i386-linux-gnu/lib");
> ---------------------- clip --------------------------------------
>
> ie. there is this wrong SEARCH_DIR("..."), so 'ld' has this bug...
Be careful there. Some of those SEARCH_DIRs might be bogus - for instance
if --nostdlib is set (and maybe if you are cross-compiling, IIRC) , then
ld will print some dirs which it does not search.
--
Charlie
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list