2010年11月29日

摘要: 近日,编译一套代码,用到了boost.python的静态库,由于64bit下linux必须使用-fPIC选项,但是默认这个选项是没有的。研究良久,才明白这么搞:在boost_inc下,编辑vim tools/build/v2/tools/gcc.jam在750行处,添加 toolset.flags $(toolset).compile USER_OPTIONS $(condition)/linkstatic : -fPIC : unchecked ; toolset.flags $(toolset).compile.c++ USER_OPTIONS $(condition)/links 阅读全文

posted @ 2010-11-29 17:32 blackcat 阅读(890) 评论(0) 推荐(0) 编辑


Copyright © 2024 blackcat
Powered by .NET 8.0 on Kubernetes