relocation R_X86_64_32 against `a local symbol'


/usr/bin/ld: /usr/local/lib/libbz2.a: relocation R_X86_64_32 against `a local symbol' can not be

used when making a shared object; recompile with -fPIC
解决办法
 
在CFLAGS上加入 -fPIC
# cd zlib-1.2.3
# CFLAGS="-O3 -fPIC"  ./configure --prefix=/usr/local/zlib
# make && make install

注:这是在64位的主机上做时才需要的,32位的直接./configure --prefix=/usr/local/zlib 就行

你可能感兴趣的:(symbol,R_X86_64_32,relocation)