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
_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool