From bf31fa5d30d7fbe5d224ee4575cf5e10d1265933 Mon Sep 17 00:00:00 2001 From: Patrick Pelletier Date: Wed, 27 Feb 2013 16:31:17 -0800 Subject: [PATCH] use ${OPENSSL_LIBS} instead of -lssl -lcrypto This made the difference between segfaulting and not segfaulting for me when I run https-client, when I've built libevent using an OpenSSL in a non-standard location. In the same spirit as 1d9d5110a4aebf5833f6fd78bd0252affde0f4d0 and d70af27d0152d0a87a25127faf215604beb8ffe0. --- sample/include.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/include.am b/sample/include.am index 6442a8b5..91d28352 100644 --- a/sample/include.am +++ b/sample/include.am @@ -15,12 +15,12 @@ SAMPLES = \ if OPENSSL SAMPLES += sample/le-proxy sample_le_proxy_SOURCES = sample/le-proxy.c -sample_le_proxy_LDADD = libevent.la libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD} +sample_le_proxy_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD} sample_le_proxy_INCLUDES = $(OPENSSL_INCS) SAMPLES += sample/https-client sample_https_client_SOURCES = sample/https-client.c -sample_https_client_LDADD = libevent.la libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD} +sample_https_client_LDADD = libevent.la libevent_openssl.la ${OPENSSL_LIBS} ${OPENSSL_LIBADD} sample_https_client_INCLUDES = $(OPENSSL_INCS) endif