Here is a small patch to Makefile.org to build
shared libraries, at least for linux/alpha (RedHat)
and linux/mips (a Cobalt Qube, also derived from RedHat):
Index: Makefile.org
===================================================================
RCS file: /usr/src/rsync/openssl//openssl/Makefile.org,v
retrieving revision 1.5
diff -r1.5 Makefile.org
3a4,5
> MAJOR = 0
> MINOR = 9.1
199a202,215
>
> shared:
> for i in crypto ssl; do \
> rm -f lib$$i.a lib$$i.so.${MAJOR} \
> lib$$i.so.${MAJOR}.${MINOR} lib$$i.so; \
> echo "making lib$$i.so..."; \
> ${MAKE} CFLAG='-fPIC ${CFLAG}' DIRS=$$i clean all || exit 1; \
> ${LD} -shared -soname lib$$i.so.${MAJOR} \
> -o lib$$i.so.${MAJOR}.${MINOR} --whole-archive \
> lib$$i.a || exit 1; \
> rm -f lib$$i.a; make -C $$i clean || exit 1 ;\
> ln -s lib$$i.so.${MAJOR} lib$$i.so; \
> ln -s lib$$i.so.${MAJOR}.${MINOR} lib$$i.so.${MAJOR}; \
> done;
This works by running make shared, just before make all, and
copying lib*.so.* into the preferred lib directory.
Currently, I include /usr/lib/openssl/lib in /etc/ld.so.conf
and ldconfig afterwards.
S/MIME Cryptographic Signature