]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Document why we build memwipe that way.
authorNick Mathewson <nickm@torproject.org>
Thu, 12 May 2016 16:56:47 +0000 (12:56 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 12 May 2016 16:56:47 +0000 (12:56 -0400)
src/test/include.am

index b71415212cfa86758ca228db8d47b7dd5abd7299..d2909b2dcf6f6581983ac82816f43f7f200f38f1 100644 (file)
@@ -170,8 +170,11 @@ src_test_test_slow_LDADD = $(src_test_test_LDADD)
 src_test_test_slow_LDFLAGS = $(src_test_test_LDFLAGS)
 
 src_test_test_memwipe_CPPFLAGS = $(src_test_test_CPPFLAGS)
+# Don't use bugtrap cflags here: memwipe tests require memory violations.
 src_test_test_memwipe_CFLAGS = $(TEST_CFLAGS)
 src_test_test_memwipe_LDADD = $(src_test_test_LDADD)
+# The LDFLAGS need to include the bugtrap cflags, or else we won't link
+# successfully with the libraries built with them.
 src_test_test_memwipe_LDFLAGS = $(src_test_test_LDFLAGS) @CFLAGS_BUGTRAP@
 
 src_test_bench_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \