On 31 March 2011 13:04, Fred Drake <fdr...@acm.org> wrote:
> On Wed, Mar 30, 2011 at 5:08 PM, kiorky <kio...@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
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to