Default linker library search paths
Michael Morrell
morrell@alumni.ucsd.edu
Mon Sep 28 22:34:00 GMT 2009
I'm reading this snippet from the linker's man page, describing -L:
The default set of paths searched (without being specified with -L)
depends on which emulation mode ld is using, and in some cases also
on how it was configured.
I have two questions.
1) Is there a way to get this list of default paths
2) Is there any way to get it not to search those paths?
I'm using a cross-linker and am worried that it will happily look for
libraries on the host machine under /usr/lib even though they aren't the
ones I want it to find and won't even be the correct architecture.
Michael
More information about the Binutils
mailing list