From 79d4c3ac681aae732fb0a1551c0281b17f517d02 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Wed, 10 Mar 2021 13:28:16 +0000 Subject: [PATCH] whitelist: add SECP_INCLUDES to bench_whitelist CPPFLAGS This will fix the following compile error on macOS In file included from src/num.h:17, from src/num_impl.h:14, from src/bench_whitelist.c:14: src/num_gmp.h:10:10: fatal error: gmp.h: No such file or directory --- src/modules/whitelist/Makefile.am.include | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/whitelist/Makefile.am.include b/src/modules/whitelist/Makefile.am.include index 0dc5a64db..f43e3e4b9 100644 --- a/src/modules/whitelist/Makefile.am.include +++ b/src/modules/whitelist/Makefile.am.include @@ -5,6 +5,7 @@ noinst_HEADERS += src/modules/whitelist/tests_impl.h if USE_BENCHMARK noinst_PROGRAMS += bench_whitelist bench_whitelist_SOURCES = src/bench_whitelist.c +bench_whitelist_CPPFLAGS = -DSECP256K1_BUILD $(SECP_INCLUDES) bench_whitelist_LDADD = libsecp256k1.la $(SECP_LIBS) bench_generator_LDFLAGS = -static endif