You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/10/25 03:06:02 UTC

[GitHub] [incubator-brpc] TousakaRin commented on issue #1587: 编译报错

TousakaRin commented on issue #1587:
URL: https://github.com/apache/incubator-brpc/issues/1587#issuecomment-950484577


   https://github.com/apache/incubator-brpc/issues/1586
   
   gflag编译gflags.a的时候默认不会添加-fPIC选项,这会导致打包-libbrpc.so时出错,一种解决办法是,通过源代码编译gflags,然后执行cmake的时候,添加选项CXXFLAGS=-fPIC,或者export CXXFLAGS=-fPIC即可加上-fPIC,你也可以删掉libgflags.a,这样就会通过动态库的方式链接gflags(如果有的话)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org