[Top][All Lists]

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

libtool bug: freebsd -rpath, LD_LIBRARY_PATH issues

From: Dave Benson
Subject: libtool bug: freebsd -rpath, LD_LIBRARY_PATH issues
Date: Tue, 8 Nov 2005 07:31:21 -0800
User-agent: Mutt/1.4.1i


I've been porting some software to freebsd 5.4,
and i've been encountering an issue in the
precedence of LD_LIBRARY_PATH versus -rpath.

Apparently, linux and older version of freebsd
treat -rpath to be of higher precedence.
The newest freebsds treat LD_LIBRARY_PATH
as having higher precedence.  (apparently solaris
also has LD_LIBRARY_PATH higher precendence)

The end-result is that on freebsd, my test programs etc
are using the *installed* version of the library,
rather than the one in '.'.  unfortunately, i cannot
drop the LD_LIBRARY_PATH use b/c that's needed for
much other software on the system to work
(not everyone uses -rpath)

I believe that the libtool convenience wrapper should
use the method of highest precedence, or use all the methods all
the time to ensure that those wrappers set things up to
use the local software.

In any event, attached is a tarball illustrating the problem.
on linux, no test fails.  on freebsd, test 3 fails.

- dave

Attachment: bug--freebsd-libtool.tar.gz
Description: GNU Zip compressed data

reply via email to

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