Open gussmith23 opened 6 years ago
This might be fixable by making capstats build JsonBox, and adding the CMAKE_POSITION_INDEPENDENT_CODE property on the JsonBox target as described here: https://stackoverflow.com/questions/38296756/what-is-the-idiomatic-way-in-cmake-to-add-the-fpic-compiler-option
For now I've fixed it by building and installing JsonBox using the PIC setting.
if I do
cmake .. -DCMAKE_BUILD_TYPE=Debug
and then build, I get the error:/usr/bin/ld: /usr/local/lib/libJsonBox_d.a(Value.cpp.o): relocation R_X86_64_32 against
.bss' can not be used when making a shared object; recompile with -fPIC`