编译程序遇到问题 relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;

编译程序遇到问题  relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;


发现编译的程序引用的一个库(.a文件)是直接用./configure 编译的, 64位机器不能直接./configure 进行配置,需要采用如下方式


CFLAGS="-O3 -fPIC" ./configure

make

make install

原文地址:https://www.cnblogs.com/luoyinjie/p/7219344.html