[lxml-dev] install lxml 2.0.5 on Mac OS X Leopard - why is it so hard?
Kumar McMillan
kumar.mcmillan at gmail.com
Wed May 14 06:54:46 CEST 2008
On Tue, May 13, 2008 at 12:25 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> > gcc ... -I -I/path/to/python/headers
>
> That's a bug. Here is a patch.
closer! thanks for that fix. That got all the -I includes in order.
Next up, I'm pretty sure I need to pass -static to libtool so that it
honors the -lxml2.a (without -static, it says xml2.a -- lib not
found). My idea for this was:
export LDFLAGS='-static'
and I got:
gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup -static
build/temp.macosx-10.3-i386-2.5/src/lxml/lxml.etree.o
-L/Users/kumar/src/lxml-2.0/parts/libxml2/lib
-L/Users/kumar/src/lxml-2.0/parts/libxslt/lib -lxslt.a -lexslt.a
-lxml2.a -lz.a -lm.a -o build/lib.macosx-10.3-i386-2.5/lxml/etree.so
ld_classic: incompatible flag -bundle used (must specify "-dynamic" to be used)
so ... how do I stop it from adding -bundle? Ideas for another approach?
More information about the lxml-dev
mailing list