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问题展开,指出出现该问题后,可通过编辑CMakeLists.txt并添加特定内容来解决。
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)
4211

被折叠的 条评论
为什么被折叠?