是否将python本身编译成共享库,libpython2.6.a还是libpython2.6.so。第三方程序需要链接libpython时, 有的会要求使用动态链接的版本,如mod_python:
./configure --enable-shared
ldd python
如果是动态编译,make install之后必须设置动态库加载路径:
/etc/ld.so.config/
ldconfig
#FIXME: -fPIC http://en.wikipedia.org/wiki/Position-independent_code
此配置项和c ext的so模块没有关系。