From ef39721cccec344983f09180bcf9c443d491f7cb Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Mon, 30 Jan 2023 22:42:39 +0000 Subject: [PATCH] Do not link `bench` and `ctime_tests` to `COMMON_LIB` The `bench` and `ctime_tests` are users of the library, they should only be linked to the library, not the objects it was built from. --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 122e044cea74e..48ee2fcf8f913 100644 --- a/Makefile.am +++ b/Makefile.am @@ -103,7 +103,7 @@ noinst_PROGRAMS = if USE_BENCHMARK noinst_PROGRAMS += bench bench_internal bench_ecmult bench_SOURCES = src/bench.c -bench_LDADD = libsecp256k1.la $(COMMON_LIB) +bench_LDADD = libsecp256k1.la bench_CPPFLAGS = $(SECP_CONFIG_DEFINES) bench_internal_SOURCES = src/bench_internal.c bench_internal_LDADD = $(COMMON_LIB) $(PRECOMPUTED_LIB) @@ -134,7 +134,7 @@ endif if USE_CTIME_TESTS noinst_PROGRAMS += ctime_tests ctime_tests_SOURCES = src/ctime_tests.c -ctime_tests_LDADD = libsecp256k1.la $(COMMON_LIB) +ctime_tests_LDADD = libsecp256k1.la ctime_tests_CPPFLAGS = $(SECP_CONFIG_DEFINES) endif