Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些理由将 libthrift.a/libthriftnb.a 打包到共享库中(而不是直接使用 so 文件),所以我应该使用 -fPIC 构建它们。
我像这样建立节俭:
./configure --prefix="$PATH"/../thrift-0.8.0_build; make; make install;
我该如何改变才能实现这一目标?
您可以像这样运行配置。
./configure CFLAGS=-fPIC CXXFLAGS=-fPIC