On CentOS 5.4, OpenSSL compiles fine without 'shared' option. But when I passed that option the compilation fails with:
/usr/bin/ld: libcrypto.a(x86_64-gcc.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
When I try: ./config shared CFLAGS=-fPIC that doesn't work.
What can I do to get OpenSSL to compile with the 'shared' option? Thanks
Peter