title: Linking OpenSSL into a dynamic library
body: <p>I'm trying to static link OpenSSL into my program.</p>
  
  <p>It works fine when linking into the executable. I need to use OpenSSL in a shared library (so, or dll) that I dynamically load later on when the process executes.</p>
  
  <p>Trying to statically link OpenSSL into the shared library causes errors due to OpenSSL not being compiled with -fPIC. Is it possible to do this without recompiling openssl?</p>
  
  <p>Also, is there a better way to do this?</p>