libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add 64 bit directories to sys_lib_dlsearch_path_spec for Lin


From: Richard Purdie
Subject: Re: [PATCH] Add 64 bit directories to sys_lib_dlsearch_path_spec for Linux ELF
Date: Wed, 28 Jan 2009 20:10:00 +0000

On Wed, 2009-01-28 at 12:01 -0800, Dan Nicholson wrote:
> If they follow the LSB, then they should be using lib64. However, you
> can configure the linker any number of ways. I tried to get a patch to
> glibc so this path could be determined, but it was rejected.
> 
> http://sourceware.org/ml/libc-alpha/2008-12/msg00052.html
> 
> I think this is the only reasonable way to proceed, but I suppose that
> an existence test would be safe, too:
> 
> sys_lib_dlsearch_path_spec="/lib /usr/lib"
> case `/usr/bin/file conftest.o` in
>     *64-bit*)
>         for dir in /lib64 /usr/lib64; do
>             test -d $dir &&
> sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $dir"
>         done
>         ;;
> esac

Just as a datapoint, my standard ubuntu 64 bit desktop has /lib64 as a
symlink to /lib which has 64 bit libraries in it.

Cheers,

Richard

-- 
Richard Purdie
Intel Open Source Technology Centre





reply via email to

[Prev in Thread] Current Thread [Next in Thread]