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 2019/04/18 03:57:01 UTC

[GitHub] [incubator-brpc] githcx commented on issue #737: cmake链接报错 /usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

githcx commented on issue #737: cmake链接报错 /usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
URL: https://github.com/apache/incubator-brpc/issues/737#issuecomment-484346817
 
 
   leveldb和gflag离线安装,通过export CXXFLAGS="-fPIC",之后cmake ../ 和 make install 后。
   再对brpc进行make,就一切ok了。
   参考这个解释:https://blog.csdn.net/h_jlwg6688/article/details/52410959

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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