在linux 64bit上編譯curl with-ssl時(shí)出現(xiàn)下面的錯(cuò)誤
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/libssl.a(s2_clnt.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../../lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
變更方法:
env PKG_CONFIG_PATH="openssl path" ./configure --disable-file --without-pic --disable-shared --with-ssl