commit 6fd301fa8a1219ac5f00342a1886cf8692912c0b
parent 4833717d69fee558d55f6e853a22a5e8199357a2
Author: Nick Mathewson <nickm@torproject.org>
Date: Tue, 17 Jul 2018 14:47:56 -0400
Merge remote-tracking branch 'rl1987/bug26789'
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/Makefile.am b/Makefile.am
@@ -66,6 +66,7 @@ TOR_UTIL_LIBS = \
# Variants of the above for linking the testing variant of tor (for coverage
# and tests)
+if UNITTESTS_ENABLED
TOR_UTIL_TESTING_LIBS = \
src/lib/libtor-process-testing.a \
src/lib/libtor-time-testing.a \
@@ -90,6 +91,7 @@ TOR_UTIL_TESTING_LIBS = \
src/lib/libtor-err-testing.a \
src/lib/libtor-intmath.a \
src/lib/libtor-ctime-testing.a
+endif
# Internal crypto libraries used in Tor
TOR_CRYPTO_LIBS = \
@@ -100,11 +102,13 @@ TOR_CRYPTO_LIBS = \
# Variants of the above for linking the testing variant of tor (for coverage
# and tests)
+if UNITTESTS_ENABLED
TOR_CRYPTO_TESTING_LIBS = \
src/lib/libtor-tls-testing.a \
src/lib/libtor-crypt-ops-testing.a \
$(LIBKECCAK_TINY) \
$(LIBDONNA)
+endif
# All static libraries used to link tor.
TOR_INTERNAL_LIBS = \
@@ -118,6 +122,7 @@ TOR_INTERNAL_LIBS = \
# Variants of the above for linking the testing variant of tor (for coverage
# and tests)
+if UNITTESTS_ENABLED
TOR_INTERNAL_TESTING_LIBS = \
src/core/libtor-app-testing.a \
src/lib/libtor-compress-testing.a \
@@ -126,6 +131,7 @@ TOR_INTERNAL_TESTING_LIBS = \
$(TOR_UTIL_TESTING_LIBS) \
src/trunnel/libor-trunnel-testing.a \
src/lib/libtor-trace.a
+endif
# All libraries used to link tor-cov