[EMAIL PROTECTED] wrote: > I want to build pyexpat and link it statically in Python. Im using > Python 2.4.2. This is just a straight forward build using ./configure > and then make > > I change *shared* to *static* and then uncoment these two lines: > > EXPAT_DIR=/usr/local/src/expat-1.95.2 > pyexpat pyexpat.c -DHAVE_EXPAT_H -I$(EXPAT_DIR)/lib -L$(EXPAT_DIR) -lexpat > > The directory /usr/local/src/expat-1.95.2 doesn't exist so I assume I > need to change it to the expat dir. One question will the libexpat.a > library be built and is this the one refered to -lexpat?
you probably need expat 1.95.8 to build with recent Pythons, and you're supposed to build the expat library yourself before you build pyexpat in this way. (note that if you do an ordinary build, Python uses its own copy of the expat sources, in Modules/expat) </F> -- http://mail.python.org/mailman/listinfo/python-list