May 10, 2018
7:20 p.m.
Hello Everyone, If the lxml C extension links to libxml2 and libxslt; and zlib is used by libxml2 directly, then why does the extension itself need to link to libz ? I was trying to compile the lxml on a CentOS 6 machine with my own builds of libxslt and libxml2, with libxml2 already having zlib.so in it's DT_NEEDED section. When I build lxml, the C extension generated also ended up having zlib.so in it's DT_NEEDED section. The lines related to this seem to be: https://github.com/lxml/lxml/blob/master/setupinfo.py#L271-L272 What's the reason behind doing this? Cheers! Nehal J Wani