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
There is an option -fXXX that you can pass to config so you can do it with:
-fXXX
./config -fPIC shared