Skip to content

Commit 7fd5b80

Browse files
committed
build: disable optional use of gmp in internal secp256k1 build
Until secp256k1 is used for verification there is no reason for Bitcoin Core's secp256k1 to link against gmp, even if available. Pass a flag to configure to override the bignum implementation. This fixes a crash at runtime on ppc64 reported by @gmaxwell.
1 parent 3e8ccc7 commit 7fd5b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ PKGCONFIG_LIBDIR_TEMP="$PKG_CONFIG_LIBDIR"
885885
unset PKG_CONFIG_LIBDIR
886886
PKG_CONFIG_LIBDIR="$PKGCONFIG_LIBDIR_TEMP"
887887

888-
ac_configure_args="${ac_configure_args} --disable-shared --with-pic"
888+
ac_configure_args="${ac_configure_args} --disable-shared --with-pic --with-bignum=no"
889889
AC_CONFIG_SUBDIRS([src/secp256k1])
890890

891891
AC_OUTPUT

0 commit comments

Comments
 (0)