libtool
[Top][All Lists]
Advanced

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

Re: Trying to get libtool not to add -rpath, since libs are only in a st


From: Roumen Petrov
Subject: Re: Trying to get libtool not to add -rpath, since libs are only in a staging directory
Date: Thu, 21 Aug 2014 00:52:05 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1

Hi Filipe,

Filipe Brandenburger wrote:
Hi,

I'm trying to link binaries to libraries that are not installed on the
system, but just unpacked to a "staging" directory.
[SNIP]

Is this a libtool bug?

Any suggestions of workarounds?

(I also filed a bug at
http://savannah.gnu.org/support/index.php?108637  in case this is
actually a libtool bug.)

Libtool exclude directories from RPATH if path is listed in sys_lib_dlsearch_path_spec - list of space separated directories.


Variable sys_lib_dlsearch_path_spec is generated from a libtool macro. On linux with FSF libtool version value start with /lib /usr/lib and existing directories from /etc/ld.so.conf .


After configuration user could check current value with command:
$ ./libtool --config | grep sys_lib_dlsearch_path_spec
( I assume that package build process generate libtool script in build directory )


You could use lt_cv_sys_lib_dlsearch_path_spec to override it at configure time.
.../configure  \
...
lt_cv_sys_lib_dlsearch_path_spec="<ORIGINAL VALUE> <STAGING_PATH>"
...


Regards
Roumen Petrov




reply via email to

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