Modules failing to add runtime library path info at link time
lists at cheimes.de
Tue Feb 2 02:00:50 CET 2010
> Where/how can I configure the appropriate portion of our Python
> install to do 100% the right thing instead of just 50% (-L)?
Python's distutils doesn't alter the library search path unless you tell
> A specific example -- note the -L and lack of -R (Solaris build):
> % python setup.py build
> gcc -shared build/temp.solaris-2.10-sun4u-2.6/pgmodule.o -L/afs/rcf/
> apps/catchall/lib -lpq -o build/lib.solaris-2.10-sun4u-2.6/_pg.so
The Extension() class supports the rpath argument. Simply add
rpath="/path/to/library/dir" and you are good.
More information about the Python-list