summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-05-12 12:56:47 -0400
committerNick Mathewson <nickm@torproject.org>2016-05-12 12:56:47 -0400
commitfb999abea6edc99f151f546a7a4a60cf5b5f221b (patch)
tree3d4d87d01909ca8888efab89d9c51a43da6b64a5 /src/test
parenta3615a988ebb1181ae636d0f9111ade0f1d3f6cb (diff)
downloadtor-fb999abea6edc99f151f546a7a4a60cf5b5f221b.tar.gz
tor-fb999abea6edc99f151f546a7a4a60cf5b5f221b.zip
Document why we build memwipe that way.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/include.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/include.am b/src/test/include.am
index b71415212c..d2909b2dcf 100644
--- a/src/test/include.am
+++ b/src/test/include.am
@@ -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@ \