* Rafał Mużyło wrote on Wed, Apr 25, 2007 at 11:31:53PM CEST:
> [...] but still don't want to have hardcoded paths in the library (as
> I'm setting LD_LIBRARY_PATH in .bash_profile anyway).
> So is there any sane way of doing this, short of manually adding a
> modified AC_LIBTOOL_SYS_DYNAMIC_LINKER macro to every compiled package.
After running configure, before running make, patch the libtool script
to add your path to the runtime search path. Something like (untested!)
sed '/^sys_lib_dlsearch_path_spec/s/"$/'" $your_path"'"/' < libtool \
> tlibtool
mv -f tlibtool libtool
But note that this does not change libltdl's LT_DLSEARCH_PATH.
Or provide a patch (that works for all systems) that allows the user to
override independently sys_lib_dlsearch_path_spec in the libtool script,
and LT_DLSEARCH_PATH for libltdl, and documents this. If you're going
to contribute to GNU software, you'll need a copyright assignment (more
off-list if you're interested).
Hope that helps.
Cheers,
Ralf
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool