File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,6 @@ libsecp256k1_la_CPPFLAGS = $(SECP_INCLUDES) $(SECP_CONFIG_DEFINES)
96
96
libsecp256k1_la_LIBADD = $(SECP_LIBS ) $(COMMON_LIB ) $(PRECOMPUTED_LIB )
97
97
libsecp256k1_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_CURRENT ) :$(LIB_VERSION_REVISION ) :$(LIB_VERSION_AGE )
98
98
99
- if VALGRIND_ENABLED
100
- libsecp256k1_la_CPPFLAGS += -DVALGRIND
101
- endif
102
-
103
99
noinst_PROGRAMS =
104
100
if USE_BENCHMARK
105
101
noinst_PROGRAMS += bench bench_internal bench_ecmult
@@ -123,10 +119,10 @@ noverify_tests_CPPFLAGS = $(SECP_INCLUDES) $(SECP_TEST_INCLUDES) $(SECP_CONFIG_D
123
119
noverify_tests_LDADD = $(SECP_LIBS ) $(SECP_TEST_LIBS ) $(COMMON_LIB ) $(PRECOMPUTED_LIB )
124
120
noverify_tests_LDFLAGS = -static
125
121
if VALGRIND_ENABLED
126
- noverify_tests_CPPFLAGS += -DVALGRIND
127
122
noinst_PROGRAMS += valgrind_ctime_test
128
123
valgrind_ctime_test_SOURCES = src/valgrind_ctime_test.c
129
124
valgrind_ctime_test_LDADD = libsecp256k1.la $(SECP_LIBS ) $(COMMON_LIB )
125
+ valgrind_ctime_test_CPPFLAGS = $(SECP_CONFIG_DEFINES )
130
126
endif
131
127
if !ENABLE_COVERAGE
132
128
TESTS += tests
Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ case $set_ecmult_gen_precision in
344
344
esac
345
345
346
346
if test x"$enable_valgrind" = x"yes"; then
347
- SECP_INCLUDES ="$SECP_INCLUDES $VALGRIND_CPPFLAGS"
347
+ SECP_CONFIG_DEFINES ="$SECP_CONFIG_DEFINES $VALGRIND_CPPFLAGS -DVALGRIND "
348
348
fi
349
349
350
350
# Add -Werror and similar flags passed from the outside (for testing, e.g., in CI).
You can’t perform that action at this time.
0 commit comments