Skip to content

Instantly share code, notes, and snippets.

@bahamas10
Created February 25, 2015 20:15
Show Gist options
  • Save bahamas10/144eb19f9029e10f9cf4 to your computer and use it in GitHub Desktop.
Save bahamas10/144eb19f9029e10f9cf4 to your computer and use it in GitHub Desktop.
haproxy

I compiled openssl 1.0.1l to $LIBSSLBUILD before hand use the directions in the haproxy readme... then

$ make TARGET=solaris USE_OPENSSL=yes USE_STATIC_PCRE=1 ADDINC=-I$LIBSSLBUILD/include ADDLIB="-L$LIBSSLBUILD/lib -ldl" clean all
...
$ ./haproxy -vv | grep OpenSSL | head -2
Built with OpenSSL version : OpenSSL 1.0.1l 15 Jan 2015
Running on OpenSSL version : OpenSSL 1.0.1e 11 Feb 2013
@bahamas10
Copy link
Author

$ make TARGET=generic USE_OPENSSL=yes USE_STATIC_PCRE=1 USE_OPENSSL=1 SSL_INC=$LIBSSLBUILD/include SSL_LIB=$LIBSSLBUILD/lib ADDLIB=-ldl clean all
$ ./haproxy -vv | grep OpenSSL | head -2
Built with OpenSSL version : OpenSSL 1.0.1l 15 Jan 2015
Running on OpenSSL version : OpenSSL 1.0.1l 15 Jan 2015
$ ldd ./haproxy 
        libnsl.so.1 =>   /lib/64/libnsl.so.1
        libsocket.so.1 =>        /lib/64/libsocket.so.1
        libcrypt.so.1 =>         /usr/lib/64/libcrypt.so.1
        libdl.so.1 =>    /lib/64/libdl.so.1
        libc.so.1 =>     /lib/64/libc.so.1
        libmp.so.2 =>    /lib/64/libmp.so.2
        libmd.so.1 =>    /lib/64/libmd.so.1
        libgen.so.1 =>   /lib/64/libgen.so.1
        libm.so.2 =>     /lib/64/libm.so.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment