This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Default linker library search paths
- From: Michael Morrell <morrell at alumni dot ucsd dot edu>
- To: binutils at sourceware dot org
- Date: Mon, 28 Sep 2009 15:34:30 -0700 (PDT)
- Subject: Default linker library search paths
- Reply-to: morrell at alumni dot ucsd dot edu
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