When I try to compile the code with ./autogen.sh, ./configure and make the linker complains about expecting position independent code (PIC):
$ make -j16
CXXLD src/libbitcoin-explorer.la
/usr/bin/ld: /usr/local/lib/libsodium.a(libsodium_la-box_curve25519xsalsa20poly1305.o): relocation R_X86_64_PC32 against symbol `crypto_box_curve25519xsalsa20poly1305_beforenm' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:2211: src/libbitcoin-explorer.la] Error 1
Issue
When I try to compile the code with
./autogen.sh
,./configure
andmake
the linker complains about expecting position independent code (PIC):System