I am trying to build Julia from source, but running make
returns this error:
/usr/bin/ld: /usr/local/lib/libcrypto.a(poly1305-x86_64.o): relocation R_X86_64_PC32 against symbol `poly1305_blocks' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
I got a similar error with libssl, so I added -fPIC to openssl
Makefile
. But after getting the same error with libcrypto, I added -fPIC to the crypto
Makefile
, and built openssl from source again. But I cannot get past this error.
How do I get libcrypto rebuilt with -fPIC?