RPM Community Forums

Mailing List Message of <rpm-devel>

Re: RPM_CHECK_LIB: Adding .../lib64/... searches

From: Peter O'Gorman <peter@pogma.com>
Date: Sun 24 Aug 2008 - 19:31:53 CEST
Message-ID: <48B19B09.3030102@pogma.com>
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 O'Gorman
Received on Sun Aug 24 19:31:56 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.