[Pkg-bitcoin-commits] [libsecp256k1] 34/45: build: add -DSECP256K1_BUILD to benchmark_internal build flags

Jonas Smedegaard dr at jones.dk
Sat Aug 27 12:00:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libsecp256k1.

commit ac01378c87905773ee44df9dfa97d600b7586552
Author: Andrew Poelstra <apoelstra at wpsoftware.net>
Date:   Mon Jun 6 18:32:29 2016 +0000

    build: add -DSECP256K1_BUILD to benchmark_internal build flags
    
    gcc 6 will warn about our non-null checks when SECP256K1_BUILD
    our NONNULL marker is nontrivial. This occurs unless SECP256K1_BUILD
    is set, which we had forgotten to do for the internal benchmarks,
    which compile directly against the library instead of linking.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 6054461..3d130bd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -84,7 +84,7 @@ bench_sign_SOURCES = src/bench_sign.c
 bench_sign_LDADD = libsecp256k1.la $(SECP_LIBS) $(SECP_TEST_LIBS) $(COMMON_LIB)
 bench_internal_SOURCES = src/bench_internal.c
 bench_internal_LDADD = $(SECP_LIBS) $(COMMON_LIB)
-bench_internal_CPPFLAGS = $(SECP_INCLUDES)
+bench_internal_CPPFLAGS = -DSECP256K1_BUILD $(SECP_INCLUDES)
 endif
 
 if USE_TESTS

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/libsecp256k1.git



More information about the Pkg-bitcoin-commits mailing list