linux编译问题集锦(持续更新中)
2015-09-20 22:28
330 查看
问题:fileappender.o relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPI
解决:
使用 ar -x liblog4cplus.a 解包
readelf --relocs fileappender.o | egrep '(GOT|PLT|JU?MP_SLOT)' 如果输出为空,则该静态库没有position-independent,需要在该静态库的编译脚本添加 -fPIC
解决:
使用 ar -x liblog4cplus.a 解包
readelf --relocs fileappender.o | egrep '(GOT|PLT|JU?MP_SLOT)' 如果输出为空,则该静态库没有position-independent,需要在该静态库的编译脚本添加 -fPIC
相关文章推荐
- Linux常用命令
- LINUX系统简介
- linux下解压命令大全
- Linux 基础入门第一次实验笔记
- Linux 基础入门 第一周9.14~9.20
- Linux基础入门
- Linux基础入门--04
- Linux基础入门(20135207 王国伊)
- Linux基础入门--06
- Linux基础入门第三节(修改)
- 第 十 天 : 添 加 硬 盘 和 分 区 挂 载 等
- 实验一 Linux初步认识
- Linux软件包管理
- linux tc 限速实例
- linux常用命令
- 实时查看linux网卡流量
- Linux实验一
- 第一节 Linux系统简介
- Linux基础入门--01~03
- linux打印一个精确到毫秒级的时间