[Python-Dev] Please give this patch for building bsddb a try

Gerhard Häring gerhard@bigfoot.de
Wed, 19 Jun 2002 04:48:06 +0200

* Barry A. Warsaw <barry@zope.com> [2002-06-18 22:34 -0400]:
> The problem is that unless your sysadmin hacks ld.so.conf to add
> /usr/local/BerkeleyDB.X.Y/lib onto your standard ld run path,
> bsddbmodule.so won't be linked in such a way that it can actually
> resolve the symbols at run time.
> [...]
> os.environ['LD_RUN_PATH'] = dblib_dir

I may be missing something here, but AFAIC that's what the library_dirs
parameter in the Extension constructor of distutils is for. It basically
sets the runtime library path at compile time using the "-R" linker

mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))