By default, libboostpython.a
is compiled without -fPIC
. But I have to make a python extension and it is a dynamic library with -fPIC
that links to static libraries.
How can I compile a static library (libboostpython.a
) with -fPIC
from boost.python
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…