This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Library search path problem on x86_64 machines (lib64 vs lib)
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 30 Nov 2010 14:22:03 +0000
- Subject: Re: Library search path problem on x86_64 machines (lib64 vs lib)
- References: <20101130125313.GA16763@ypig.lip.ens-lyon.fr>
On 30 November 2010 12:53, Vincent Lefevre wrote:
> I've found a library search path problem with GCC 4.3.1. I wonder
> whether this is a bug in GCC or in Debian's symbolic link settings
> and what the current status is (with new GCC versions).
>
> The summary:
>
> GCC searches all .../lib64 directories, then all .../lib directories,
> but Debian has a symbolic link /usr/lib64 -> /usr/lib, which means
> that /usr/lib will have the precedence over all the other .../lib
> directories. This is wrong!
Since it is the same as /usr/lib64, surely it *already* has precedence
over the other lib dirs anyway, because /usr/lib64 will have been
searched earlier, so I don't see why it causes a problem.