Here is my issue - mod_python.so needs to be statically linked against
libpython. Apxs (or libtool rather) refuses to do it because it has no
guarantee that libpython is PIC. (I believe this behaviour can be
overriden on some os's versions of libtool, but that's neither here nor
there since libtool is abstracted by apxs anyway)

If I link manually with "ld -G" (tried on FreeBSD 4.3 and Solaris 8)
mod_python.so works just fine.

First - I don't understand why it works, since libpython is not PIC (-fpic
is not used when compiling). From reading what I could find on the
subject, it's supposed to crash miserably.

Second - is libtool's refusal to link with non-libtool libraries an issue
for other module writers, and what is the recommended way to go around it?
The only solution I could think of was not using apxs.

Thanks!

Grisha

Reply via email to