/usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `.rodata' can not

make[3]: *** [shared-build-recursive] Error 1/usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
解决方案:以64位的方式重新编译zlib
 961  tar zxvf zlib-1.2.3.tar.gz 
  962  cd zlib-1.2.3
  963  CFLAGS="-O3 -fPIC" ./configure 
  964  make
  965  make install
  966  make clean

猜你喜欢

转载自1971161579.iteye.com/blog/2404507
今日推荐