kumquat-buildroot/package/bitcoin/bitcoin.mk
Dick Olsson f098aff479 package/bitcoin: unset the NDEBUG flag
Since https://git.buildroot.net/buildroot/commit/?id=5a8c50fe05afacc3cbe8e7347e238da9f242fab0
all packages are now built with NDEBUG, which broke Bitcoin builds.

Bitcoin is using assert(...) extensively with the assumption of it
never being a noop at runtime. So we cannot build with NDEBUG.
See: https://github.com/bitcoin/bitcoin/blob/0.21/src/compat/assumptions.h

Fixes:
    http://autobuild.buildroot.org/results/83b/83b6dc0b97b19888fb1187bbbca485961e58ce90/
    and so many more...

Signed-off-by: Dick Olsson <hi@senzilla.io>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-06-13 21:58:05 +02:00

45 lines
1.3 KiB
Makefile

################################################################################
#
# bitcoin
#
################################################################################
BITCOIN_VERSION = 0.21.1
BITCOIN_SITE = https://bitcoincore.org/bin/bitcoin-core-$(BITCOIN_VERSION)
BITCOIN_AUTORECONF = YES
BITCOIN_LICENSE = MIT
BITCOIN_LICENSE_FILES = COPYING
BITCOIN_CPE_ID_VENDOR = bitcoin
BITCOIN_CPE_ID_PRODUCT = bitcoin_core
BITCOIN_DEPENDENCIES = host-pkgconf boost libevent
BITCOIN_MAKE_ENV = BITCOIN_GENBUILD_NO_GIT=1
# Bitcoin is using assert(...) extensively with the assumption of it
# never being a noop at runtime. So we cannot build with NDEBUG.
BITCOIN_CONF_ENV = \
CPPFLAGS="$(TARGET_CPPFLAGS) -UNDEBUG" \
CFLAGS="$(TARGET_CFLAGS) -UNDEBUG" \
CXXFLAGS="$(TARGET_CXXFLAGS) -UNDEBUG"
BITCOIN_CONF_OPTS = \
--disable-bench \
--disable-wallet \
--disable-tests \
--with-boost-libdir=$(STAGING_DIR)/usr/lib/ \
--disable-hardening \
--without-gui
ifeq ($(BR2_PACKAGE_LIBMINIUPNPC),y)
BITCOIN_DEPENDENCIES += libminiupnpc
BITCOIN_CONF_OPTS += --with-miniupnpc
else
BITCOIN_CONF_OPTS += --without-miniupnpc
endif
ifeq ($(BR2_PACKAGE_ZEROMQ),y)
BITCOIN_DEPENDENCIES += zeromq
BITCOIN_CONF_OPTS += --with-zmq
else
BITCOIN_CONF_OPTS += --without-zmq
endif
$(eval $(autotools-package))