httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <>
Subject Re: Does anyone know how to statically link libssl.a vs
Date Wed, 09 Jun 2004 21:33:50 GMT
On Wed, Jun 09, 2004 at 04:04:45PM -0500, Avery, Ken wrote:
> Hello,
> I am trying to statically link libssl.a instead of
> After doing a buildconf, configure and make; then "ldd httpd" on the
> final executable to look at the shared library dependencies and
> id there. I have tried using the -static option in the
> LDFLAGS and it does not seam to make a difference, I would even be
> willing to have all the libraries statically linked. I have even tried
> making a file to tell libtool to use libssl.a; though, I think
> this might require making files for all the libraries that
> are dependent on?

Many choices...  Pass the configure --with-openssl=/... a directory
which contains an OpenSSL installation without shared libraries.  Link
one big static httpd binary using LT_LDFLAGS=-all-static but that's
generally a bad idea.  Hack the httpd link line to pass e.g.
-Wl,-Bstatic and -Wl,-Bdynamic around the -lssl -lcrypto, or whatever
your linker of choice uses.


View raw message