]> granicus.if.org Git - libevent/commitdiff
use ${OPENSSL_LIBS} instead of -lssl -lcrypto
authorPatrick Pelletier <code@funwithsoftware.org>
Thu, 28 Feb 2013 00:31:17 +0000 (16:31 -0800)
committerPatrick Pelletier <code@funwithsoftware.org>
Thu, 28 Feb 2013 05:22:03 +0000 (21:22 -0800)
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

index 6442a8b5052cdbf8e05e070ebbf52e95c0bea675..91d28352b26a0e370acf0590572ac3e37ff021f8 100644 (file)
@@ -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