title: Compile OpenSSL with the 'shared' option?
body: <p>On CentOS 5.4, OpenSSL compiles fine without 'shared' option. But when I passed that option the compilation fails with:</p>
  
  <blockquote>
    <p>/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</p>
  </blockquote>
  
  <p>When I try: <code>./config shared CFLAGS=-fPIC</code>  that doesn't work. </p>
  
  <p>What can I do to get OpenSSL to compile with the 'shared' option?</p>
  
  <p>Thanks</p>