From fa7a48172a3c9d9c2f96d6f9c05d80f497bc304d Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Tue, 22 Nov 2016 12:57:51 +0100 Subject: Added pointer tracing, and fixes memeory leaks within a single run of cmix. --- libcmix-crypto/elgamal/gcrypt/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libcmix-crypto/elgamal/gcrypt/CMakeLists.txt') diff --git a/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt b/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt index cbd49ec..85d532b 100644 --- a/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt +++ b/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt @@ -4,10 +4,18 @@ get_target_name(target_name) find_package(Gcrypt REQUIRED) +option(trace_pointers "trace alloced pointers by gcrypt" OFF) + add_library(${target_name} SHARED gcrypt_elgamal.c ) +if(trace_pointers) + target_compile_definitions(${target_name} + PRIVATE "POINTER_TRACING" + ) +endif(trace_pointers) + target_compile_options(${target_name} PUBLIC ${Gcrypt_CFLAGS} ) -- cgit v1.2.3-70-g09d2