Hi Peter, On 13-08-14 15:11, pbar...@netprotec.com wrote: > I have compiled OpenSSL libraries statically and now have libssl.a and > libcrypto.a. When I run ./configure it never finds ssl_ctx_new. I have > tried many variations on the ./configure, here is my latest one: > > ./configure --disable-shared OPENSSL_SSL_LIBS="-L/usr/local/ssl/lib/ > -lssl" OPENSSL_CRYPTO_LIBS="-L/usr/local/ssl/lib/ > -lcrypto"OPESSL_SSL_CFLAGS="-I/usr/local/ssl/include/" > OPENSSL_CRYPTO_CFLAGS="-I/usr/local/ssl/include/" > > Any help with setting the static library would be appreciated.
I use the following flags to successfully compile OpenVPN against my own (static) OpenSSL build: OPENSSL_SSL_LIBS="-Wl,--no-as-needed -L$(pwd)/../openssl -lssl" \ OPENSSL_SSL_CFLAGS="-I$(pwd)/../openssl/include" \ OPENSSL_CRYPTO_LIBS="-L$(pwd)/../openssl -lcrypto -ldl" \ OPENSSL_CRYPTO_CFLAGS="-I$(pwd)/../openssl/include" \ ./configure --disable-shared Make sure to not have any openssl development system packages installed, because pkg-config will then override your OPENSSL CFLAGS/LIBS variables (I think that's a bug in the OpenVPN build system, patches are welcome). -Steffan ------------------------------------------------------------------------------ _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users