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



_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to