Skip to content

Commit ef39721

Browse files
committed
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.
1 parent e1817a6 commit ef39721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.am

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ noinst_PROGRAMS =
103103
if USE_BENCHMARK
104104
noinst_PROGRAMS += bench bench_internal bench_ecmult
105105
bench_SOURCES = src/bench.c
106-
bench_LDADD = libsecp256k1.la $(COMMON_LIB)
106+
bench_LDADD = libsecp256k1.la
107107
bench_CPPFLAGS = $(SECP_CONFIG_DEFINES)
108108
bench_internal_SOURCES = src/bench_internal.c
109109
bench_internal_LDADD = $(COMMON_LIB) $(PRECOMPUTED_LIB)
@@ -134,7 +134,7 @@ endif
134134
if USE_CTIME_TESTS
135135
noinst_PROGRAMS += ctime_tests
136136
ctime_tests_SOURCES = src/ctime_tests.c
137-
ctime_tests_LDADD = libsecp256k1.la $(COMMON_LIB)
137+
ctime_tests_LDADD = libsecp256k1.la
138138
ctime_tests_CPPFLAGS = $(SECP_CONFIG_DEFINES)
139139
endif
140140

0 commit comments

Comments
 (0)