Skip to content

Commit

Permalink
Do not force benchmarks to be statically linked.
Browse files Browse the repository at this point in the history
Libtool will do the right thing and use whatever is available
 based on --enable-shared/--enable-static.

This also means that some of the things we build actually
 test the dynamic library.
  • Loading branch information
gmaxwell committed Sep 29, 2015
1 parent 52fd03f commit 213aa67
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,10 @@ if USE_BENCHMARK
noinst_PROGRAMS += bench_verify bench_sign bench_internal
bench_verify_SOURCES = src/bench_verify.c
bench_verify_LDADD = libsecp256k1.la $(SECP_LIBS)
bench_verify_LDFLAGS = -static
bench_sign_SOURCES = src/bench_sign.c
bench_sign_LDADD = libsecp256k1.la $(SECP_LIBS)
bench_sign_LDFLAGS = -static
bench_internal_SOURCES = src/bench_internal.c
bench_internal_LDADD = $(SECP_LIBS)
bench_internal_LDFLAGS = -static
bench_internal_CPPFLAGS = $(SECP_INCLUDES)
endif

Expand Down
1 change: 0 additions & 1 deletion src/modules/ecdh/Makefile.am.include
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ if USE_BENCHMARK
noinst_PROGRAMS += bench_ecdh
bench_ecdh_SOURCES = src/bench_ecdh.c
bench_ecdh_LDADD = libsecp256k1.la $(SECP_LIBS)
bench_ecdh_LDFLAGS = -static
endif
1 change: 0 additions & 1 deletion src/modules/recovery/Makefile.am.include
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ if USE_BENCHMARK
noinst_PROGRAMS += bench_recover
bench_recover_SOURCES = src/bench_recover.c
bench_recover_LDADD = libsecp256k1.la $(SECP_LIBS)
bench_recover_LDFLAGS = -static
endif
1 change: 0 additions & 1 deletion src/modules/schnorr/Makefile.am.include
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ if USE_BENCHMARK
noinst_PROGRAMS += bench_schnorr_verify
bench_schnorr_verify_SOURCES = src/bench_schnorr_verify.c
bench_schnorr_verify_LDADD = libsecp256k1.la $(SECP_LIBS)
bench_schnorr_verify_LDFLAGS = -static
endif

0 comments on commit 213aa67

Please sign in to comment.