[Distutils] reservations about pythonv

Floris Bruynooghe flub at devork.be
Thu Mar 31 14:45:56 CEST 2011


On 31 March 2011 13:04, Fred Drake <fdrake at acm.org> wrote:
> On Wed, Mar 30, 2011 at 5:08 PM, kiorky <kiorky at cryptelium.net> wrote:
>> You have rpath to record search paths for shared libraries at link time.
>> This enables you not to set LD_LIBRARY_PATH at runtime.
>>
>> Something like "cc -Wl,-rpath,/path/to/libdir -L/path/to/libdir -lfoo" is what
>> you want.
>
> This fails once you want to relocate the built packages, but if you
> know what the installed location is going to be, can be incredibly
> helpful.

On SYSV-like systems you can use $ORIGIN inside RUNPATH (and RPATH) to
create relative paths starting from the location of the library.

Regards
Floris


-- 
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org


More information about the Distutils-SIG mailing list