[C++-sig] How to compile boost.python with '-fPIC' option
David Abrahams
dave at boost-consulting.com
Fri Oct 27 21:57:34 CEST 2006
"Grant Tang" <grant.tang at gmail.com> writes:
> I am trying to compile boost.python for a static libboost_python.a library, I need compile it
> with -fPIC option, but in the Jamfile I can not figure out a way to add this option?
>
> Can somebody help me? Thx
On the command-line with Boost.Build v1:
bjam -sBUILD=<cxxflags>-fPIC ...whatever..
or if you're using the CVS head, with Boost.Build v2:
bjam --v2 cxxflags=-fPIC ...whatever...
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list