library search path when compiling python

Christian Heimes lists at cheimes.de
Tue Jul 7 16:06:01 EDT 2009


nn wrote:
> I am trying to compile python with ssl support but the libraries are
> not in /usr/lib but in /opt/freeware/lib. How do I add that folder to
> the default library search path?
> 
> It looks like configure --libdir=DIR might do the job but I don't want
> to replace the default lib search path, just add an additional folder
> to it.

You didn't mention your OS. On Linux you can set the environment
variable LD_RUN_PATH prior to compiling Python. The env var sets the
rpath for the linker. See man ld(1) for details.

Christian



More information about the Python-list mailing list