This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: question about -print-search-dirs
On Tue, Sep 12, 2006 at 08:58:40AM -0700, Ian Lance Taylor wrote:
> "Kate Minola" <kate01123@gmail.com> writes:
>
> > For both lists of libraries, the directories exist. So I don't understand
> > your answer.
>
> In that case, I don't understand either. It does work as expected for
> me. I should note that there is one general exception: /lib and
> /usr/lib will not be passed as -L options, on the assumption that the
> linker will search them anyhow.
>
> Note that a/b/c/../../../x will only exist if a/b/c exists.
Looking at the original example, Kate, what exactly were you confused
about? If it was the "/../lib64" suffix, those are added _after_ the
list of directories to search are decided. They're added when we
consider whether the user asked for -m32 or -m64 (see multilib in the
documentation).
--
Daniel Jacobowitz
CodeSourcery