File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 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
@@ -119,10 +115,10 @@ noinst_PROGRAMS += tests
119
115
tests_SOURCES = src/tests.c
120
116
tests_CPPFLAGS = $(SECP_INCLUDES ) $(SECP_TEST_INCLUDES ) $(SECP_CONFIG_DEFINES )
121
117
if VALGRIND_ENABLED
122
- tests_CPPFLAGS += -DVALGRIND
123
118
noinst_PROGRAMS += valgrind_ctime_test
124
119
valgrind_ctime_test_SOURCES = src/valgrind_ctime_test.c
125
120
valgrind_ctime_test_LDADD = libsecp256k1.la $(SECP_LIBS ) $(COMMON_LIB )
121
+ valgrind_ctime_test_CPPFLAGS = $(SECP_CONFIG_DEFINES )
126
122
endif
127
123
if !ENABLE_COVERAGE
128
124
tests_CPPFLAGS += -DVERIFY
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