google / glog

C++ implementation of the Google logging module
http://google.github.io/glog/
BSD 3-Clause "New" or "Revised" License
7.1k stars 2.07k forks source link

compile failed #1133

Closed ForrestPi closed 2 months ago

ForrestPi commented 2 months ago

/usr/bin/ld: /usr/local/lib/libgflags_nothreads.a(gflags.cc.o): relocation R_X86_64_32 against .bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/lib/libgflags_nothreads.a(gflags_reporting.cc.o): relocation R_X86_64_32 against.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/local/lib/libgflags_nothreads.a(gflags_completions.cc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

centos gcc 10 gflags 2.2.2 cmake .. make & make install

glog 0.7.1 cmake .. make & make install

sergiud commented 2 months ago

Please use the search: this gflags issue has been discussed many times before.