[uClinux-dev] strange behaviour of gnu-linker ld
Jamie Lokier
jamie at shareable.org
Fri Feb 1 13:26:20 EST 2008
Bob Brusa wrote:
> I am puzzeled by a strange behaviour of the gnu-linker ld.
> The ld-command with option -l gcc should - according to the documentation
> - look for the file libgcc.a in the LIBRARY_PATH. And the file is
> there as the echo and ls-commands show, but ld searches (where?) for a
> file lgcc. :(
The enviornment variable is LD_LIBRARY_PATH, not LIBRARY_PATH.
See the ld manual.
Also, make sure you exported it to the environment.
Or, put it on the linker command line using "-L" (upper case).
Or, explicitly give the path to the .a files, instead of using the
"-l" option.
-- Jamie
More information about the uClinux-dev
mailing list