]> granicus.if.org Git - libevent/commitdiff
Use OPENSSL_LIBS in Makefile.am
authorSebastian Hahn <sebastian@torproject.org>
Thu, 5 May 2011 13:49:38 +0000 (15:49 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Fri, 6 May 2011 00:06:32 +0000 (02:06 +0200)
Makefile.am
configure.in

index 4ed82b6ffa92f6eaeb96aa681a07f1c9ad98b5b7..08a7cafeaf9a3e698d2e6e2f1b1132735922c81e 100644 (file)
@@ -201,7 +201,7 @@ libevent_extra_la_LDFLAGS = $(GENERIC_LDFLAGS)
 
 if OPENSSL
 libevent_openssl_la_SOURCES = bufferevent_openssl.c
-libevent_openssl_la_LIBADD = $(MAYBE_CORE) -lssl -lcrypto
+libevent_openssl_la_LIBADD = $(MAYBE_CORE) $(OPENSSL_LIBS)
 libevent_openssl_la_LDFLAGS = $(GENERIC_LDFLAGS)
 endif
 
index cca44425b3d36b20ef14d4f2fa028a3606b667f3..017be83fba52daf54956bdf9b3bc0d3479013559 100644 (file)
@@ -110,7 +110,7 @@ OPENSSL_LIBS=""
 have_openssl=no
 AC_SEARCH_LIBS([SSL_new], [ssl],
                [have_openssl=yes
-               OPENSSL_LIBS="$LIBS"
+               OPENSSL_LIBS="$LIBS -lcrypto"
                AC_DEFINE(HAVE_OPENSSL, 1, [Define if the system has openssl])])
 LIBS="$save_LIBS"
 AC_SUBST(OPENSSL_LIBS)