[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
Re: [PATCH] Add 64 bit directories to sys_lib_dlsearch_path_spec for Linux ELF
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.
> 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
> for dir in /lib64 /usr/lib64; do
> test -d $dir &&
> sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $dir"
Just as a datapoint, my standard ubuntu 64 bit desktop has /lib64 as a
symlink to /lib which has 64 bit libraries in it.
Intel Open Source Technology Centre