]> granicus.if.org Git - libevent/commitdiff
Use the same CFLAGS for openssl when building unit tests as with libevent
authorNick Mathewson <nickm@torproject.org>
Thu, 15 Nov 2012 16:40:33 +0000 (11:40 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 15 Nov 2012 16:41:36 +0000 (11:41 -0500)
test/include.am

index 82c7320e55923ae32558bd4332e65235c829014b..8954a9af2579bb83023c9aee22062532485f3e1b 100644 (file)
@@ -105,7 +105,8 @@ test_regress_LDFLAGS = $(PTHREAD_CFLAGS)
 
 if OPENSSL
 test_regress_SOURCES += test/regress_ssl.c
-test_regress_LDADD += libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD}
+test_regress_CPPFLAGS += $(OPENSSL_INCS)
+test_regress_LDADD += libevent_openssl.la $(OPENSSL_LIBS) ${OPENSSL_LIBADD}
 endif
 
 test_bench_SOURCES = test/bench.c