On Tue, Sep 12, 2006 at 08:58:40AM -0700, Ian Lance Taylor wrote: > "Kate Minola" <[EMAIL PROTECTED]> 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