]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: readme: add suggestion to link against static openssl
authorLukas Tribus <luky-37@hotmail.com>
Sun, 19 May 2013 14:28:17 +0000 (16:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 May 2013 11:52:56 +0000 (13:52 +0200)
Adds a suggestion in README howto link against a static build of openssl.

This is useful if the OS includes an old openssl releas and recent features
or ciphers are required.

README

diff --git a/README b/README
index 54ba1b7d6221f8916b46d76a130e84d60ca7417e..9c0bca3ec1560305d7539705a30dc22745f5da62 100644 (file)
--- a/README
+++ b/README
@@ -90,6 +90,17 @@ will automatically be linked with haproxy. Some systems also require libz, so
 if the build fails due to missing symbols such as deflateInit(), then try again
 with "ADDLIB=-lz".
 
+To link OpenSSL statically against haproxy, build OpenSSL with the no-shared
+keyword and install it to a local directory, so your system is not affected :
+
+    $ export STATICLIBSSL=/tmp/staticlibssl
+    $ ./config --prefix=$STATICLIBSSL no-shared
+    $ make && make install_sw
+
+When building haproxy, pass that path via ADDINC and ADDLIB to make and include
+libdl ("-ldl").
+    $ make TARGET=linux2628 USE_OPENSSL=1 ADDINC=-I$STATICLIBSSL/include ADDLIB="-L$STATICLIBSSL/lib -ldl"
+
 It is also possible to include native support for ZLIB to benefit from HTTP
 compression. For this, pass "USE_ZLIB=1" on the "make" command line and ensure
 that zlib is present on the system.