> > [mailto:[EMAIL PROTECTED]]On Behalf Of Lawrence Greenfield
> > this solves the work problem, but does it in a very inefficient
> > manner. At least on Solaris, this will create a new, process-private,
> > copy of libcrypto.a for every process that dynamical loads
> > libdigestmd5.so.
> Am I
> [mailto:[EMAIL PROTECTED]]On Behalf Of Lawrence Greenfield
...
>$ /usr/ccs/bin/ld -G -h libdigestmd5.so.0 -o
> .libs/libdigestmd5.so.0.0.17 digestmd5.lo -L/usr/local/lib
> -L/usr/local/src/db/db-3.1.17/build_unix
> -L/usr/local/src/OpenSSL/openssl-0.9.5a/lib -lcrypto -lsocket
> -lnsl -lc
Both Solaris and Linux are capable of linking a static library into a
shared one, as you did here:
$ /usr/ccs/bin/ld -G -h libdigestmd5.so.0 -o .libs/libdigestmd5.so.0.0.17
digestmd5.lo -L/usr/local/lib -L/usr/local/src/db/db-3.1.17/build_unix
-L/usr/local/src/OpenSSL/openssl-0.9.5a/lib -lc
I built cyrus-sasl-1.5.24 under Solaris 2.6 with this configure script:
#!/bin/sh
env CPPFLAGS="-I/usr/local/src/db/db-3.1.17/build_unix" \
LDFLAGS="-L/usr/local/src/db/db-3.1.17/build_unix" CC=cc \
./configure --localstatedir=/var/run --with-dblib=berkeley \
--with-pwche