参见
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
通过。
本文详细介绍了在AMD64架构下使用-fPIC选项进行编译的步骤,包括在Makefile中添加相关语句,并提供重新编译的方法。
参见
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
通过。
395
3621
1399
1万+
2986
1967
1403

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