summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-05-06 15:34:00 +0200
committerSebastian Hahn <sebastian@torproject.org>2011-05-06 15:38:32 +0200
commite36f9d1d9beec0daed57b68f936293dccc77b171 (patch)
tree42fbeb70c242f04665e2f35f49ccb773ea667219 /src/test
parenta740994c771b5a4ecfba6a9f6f6fc57758a4b9f8 (diff)
downloadtor-e36f9d1d9beec0daed57b68f936293dccc77b171.tar.gz
tor-e36f9d1d9beec0daed57b68f936293dccc77b171.zip
Link to libevent_openssl statically when requested
When configure tor with --enable-bufferevents and --enable-static-libevent, libevent_openssl would still be linked dynamically. Fix this and refactor src/or/Makefile.am along the way.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/Makefile.am8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index 174c1af6ef..a4f93d1c9e 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -22,18 +22,12 @@ test_SOURCES = \
test_util.c \
tinytest.c
-if USE_BUFFEREVENTS
-levent_openssl_lib = -levent_openssl
-else
-levent_openssl_lib =
-endif
-
test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
@TOR_LDFLAGS_libevent@
test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
../common/libor-event.a \
@TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
- @TOR_LIB_WS32@ @TOR_LIB_GDI@ $(levent_openssl_lib)
+ @TOR_LIB_WS32@ @TOR_LIB_GDI@
noinst_HEADERS = \
tinytest.h \