htslib庫安裝過程當中的編譯錯誤,libz.a: could not read symbols: Bad value

問題:/usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
html

參考:http://www.blogjava.net/haha0515/archive/2009/09/30/296957.htmljava

方法:從新編譯bzip2,編譯時加上參數-fPICspa

-fPIC
Position independant code, needed for shared libraries.
.net

相關文章
相關標籤/搜索