can not be used when making a shared object; recompile with -fPIC

错误信息

/usr/bin/ld: crypto/libraven_crypto.a(crypto_libraven_crypto_a-blake.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
crypto/libraven_crypto.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:3835: recipe for target 'ravend' failed
make[2]: *** [ravend] Error 1
make[2]: Leaving directory '/home/mymuzk/compil/Ravencoin/src'
Makefile:9947: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/mymuzk/compil/Ravencoin/src'
Makefile:747: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

解决方法:

make clean
./configure CFLAGS=-fPIC CXXFLAGS=-fPIC
然后重新编译就好了


猜你喜欢

转载自blog.csdn.net/qq_34710578/article/details/79365727