[tor-commits] [tor/master] Do not link tests against both libor.a and libor-testing.a

nickm at torproject.org nickm at torproject.org
Fri Mar 11 14:54:09 UTC 2016


commit 82df3e70ac191a2a3cabf3574839e7561e00e370
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Mar 11 09:53:25 2016 -0500

    Do not link tests against both libor.a and libor-testing.a
    
    Also, put libor-testing.a at a better position in the list of
    libraries, to avoid linker errors.
    
    This is a fix, or part of a fix, for 18490.
---
 changes/build18490  | 4 ++++
 src/test/include.am | 9 ++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/changes/build18490 b/changes/build18490
new file mode 100644
index 0000000..466a133
--- /dev/null
+++ b/changes/build18490
@@ -0,0 +1,4 @@
+  o Minor bugfixes (build):
+    - Do not link the unit tests against both the testing and non-testing
+      versions of the static libraries. Fixes bug 18490; bugfix on
+      0.2.7.1-alpha.
diff --git a/src/test/include.am b/src/test/include.am
index 786fb77..7d80fdf 100644
--- a/src/test/include.am
+++ b/src/test/include.am
@@ -151,9 +151,12 @@ src_test_test_switch_id_LDADD = \
 
 src_test_test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
         @TOR_LDFLAGS_libevent@
-src_test_test_LDADD = src/or/libtor-testing.a src/common/libor-testing.a \
-	src/common/libor-crypto-testing.a $(LIBKECCAK_TINY) $(LIBDONNA) \
-	src/common/libor.a src/common/libor-event-testing.a \
+src_test_test_LDADD = src/or/libtor-testing.a \
+	src/common/libor-crypto-testing.a \
+	$(LIBKECCAK_TINY) \
+	$(LIBDONNA) \
+	src/common/libor-testing.a \
+	src/common/libor-event-testing.a \
 	src/trunnel/libor-trunnel-testing.a \
 	@TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
 	@TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ \



More information about the tor-commits mailing list