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)
On 30 November 2010 17:04, Andrew Haley wrote:
> On 11/30/2010 04:24 PM, Vincent Lefevre wrote:
>> Hasn't this been standardized?
>
> Yes: it's part of the psABI.
Ah, thanks for the correction, Andrew.
Vincent, rather than using LIBRARY_PATH (which doesn't do what you
want when gcc-4.3.1 decides to look in $LIBRARY_PATH/../lib64) you
could use -L to ensure it looks in the directories you want. Or you
could add lib64 symlinks pointing to $HOME/gmp/athlon64/lib and
$HOME/x86_64/lib, so that you get consistent behaviour from Debian's
gcc and FSF gcc.