[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: To clarify a few things
From: |
Ralf Wildenhues |
Subject: |
Re: To clarify a few things |
Date: |
Fri, 27 Apr 2007 00:38:30 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
* 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