cmake 解决 recompile with fpic 问题
- 出现问题
relocation r_x86_64_32 against rodata can not be used when making a pie object recompile with fpic
- 编辑 CMakeLists.txt, 添加如下内容
SET(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
cmake 解决 recompile with fpic 问题
relocation r_x86_64_32 against rodata can not be used when making a pie object recompile with fpic
SET(CMAKE_POSITION_INDEPENDENT_CODE TRUE)