Steve VanDevender wrote:
> The below diff to the OpenSSL 0.9.4 Makefile.org adds rules for building
> shared library versions of OpenSSL on Solaris and Digital UNIX (formerly
> OSF/1, now Compaq Tru64 UNIX). When linked against these shared
> libraries the test suite passes all tests and I am successfully using
> the shared libraries in production.
Are there any PIC experts in the house? Maybe Andy?
Steve's recipe builds not only the libraries but also the apps with -KPIC.
Do ld or dld.sl do anything different with that (change the memory map, etc.)?
Is there any down side to it other than the performance hit due to PIC
opcodes?
And doesn't -Kpic theoretically result in faster execution than -KPIC?
-Kpic does work for openssl.
Also, the PIC .a's are useful for linking with other DSO's for use with
things like Apache.
FWIW, I use a procedure to compile everything with -Kpic, save the resulting
libraries as libcrypto_pic.a and libssl_pic.a, link the .o's into real
shared libs, then reconfigure for non-PIC and build the static libs, and
build the apps and tests and link them to the shared libs. But it requires
several ugly makefile hacks and it's not fit for inclusion directly in
Makefile.ssl.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]