libssl.a(s2_clnt.o): relocation R_X86_64_32 against

libssl.a(s2_clnt.o): relocation R_X86_64_32 against

在linux 64bit上编译curl with-ssl时出现下面的错误

/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

你可能感兴趣的:(libssl.a(s2_clnt.o): relocation R_X86_64_32 against)