Problem with linking embedding C application
gh_pythonlist at gmx.de
Mon Oct 1 15:05:11 CEST 2001
On Mon, Oct 01, 2001 at 02:40:19PM +0200, Mads Bondo Dydensborg wrote:
> > from distutils.sysconfig import get_config_var
> > print get_config_var("LIBS") + " " + get_config_var("SYSLIBS")
> Thanks, that is nice.
> Am I correct in assuming that this module is rather new? (I just checked,
> it does not seem to be present in Python 1.6, but is very much in 2.0).
> Where did you figure out about "LIBS" and "SYSLIBS" from?
Hmm. I first read about the distutils.sysconfig in the Extending and
Embedding Chapter of the Python docs. Section 5.6 (Linking
Requirements). When I read your post, I thought there must a way
to figure it out with the distutils.sysconfig module. I confess I just
printed the result of get_config_vars() and compared that with what
ldd /usr/bin/python showed me.
The LIBS and SYSLIBS stuff seem to come in fact from the Python Makefile
that distutils.sysconfig parses.
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
More information about the Python-list