Clayton O'Neill wrote:
> On Thu, Aug 21, 2008 at 20:18, Jeff Johnson <n3npq@mac.com> wrote:
>> On Aug 21, 2008, at 5:38 PM, Mark Hatle wrote:
>> There _IS_ a way to specify what to scan using
>> LDFLAGS="-L/path/to/foo/lib64"
>
> That doesn't prevent it from searching /lib though. My
> experience has been that libtool very easily gets confused, and
> frequently uses the wrong architecture library if it finds it first.
> Perhaps this has been remedied in newer versions of libtool than what
> I'm usually using.
I made several attempts to get libtool to correctly guess the lib
suffix, but every attempt failed to work properly on every distro, so I
gave up and just added cache vars.
In a package using a recent libtool you can do:
./configure lt_cv_sys_lib_search_path_spec='/lib64 /usr/lib64' \
lt_cv_sys_lib_dlsearch_path_spec='/lib64 /usr/lib64 /usr/local/lib'
to correct libtool's wrong guesses.
Peter
--
Peter O'Gorman
http://pogma.com
Received on Sun Aug 24 19:31:56 2008