/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
  • zlib-1.2.3.tar.gz (485 KB)
  • 下载次数: 0

你可能感兴趣的:(zlib)