relocation R_X86_64_32S against `a local symbol’ can not be used when making a shared object; recomp

来源:互联网 发布:淘宝上能买到的砍刀 编辑:程序博客网 时间:2024/04/29 12:23

参见

http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3

AMD64必须打开-fPIC(position-independent code)的选项:

需要在makefile中加入如下语句:

vim Makefile

在Makefile中加入以下语句:

CFLAGS+=-fPIC

重新编译:

#make clean; make

通过。

原创粉丝点击