summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-05-21 07:51:53 +0000
committernia <nia@pkgsrc.org>2022-05-21 07:51:53 +0000
commit2ffdbf2faf34b99cd7f260362767c0789ea9ec5a (patch)
tree57ad2dd3db08774c85f779eafcc76bb766c4e433
parent1b67edf57788a68a703c4e07af99e7ade45576a8 (diff)
downloadpkgsrc-2ffdbf2faf34b99cd7f260362767c0789ea9ec5a.tar.gz
bitcoin: wants C++17
-rw-r--r--finance/bitcoin/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/finance/bitcoin/Makefile b/finance/bitcoin/Makefile
index 6cd34a82245..69967125fd3 100644
--- a/finance/bitcoin/Makefile
+++ b/finance/bitcoin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2022/04/18 19:11:02 adam Exp $
+# $NetBSD: Makefile,v 1.50 2022/05/21 07:51:53 nia Exp $
DISTNAME= bitcoin-22.0
PKGREVISION= 5
@@ -12,8 +12,8 @@ LICENSE= mit
RCD_SCRIPTS= bitcoind
-# bitcoin-core requires c++11 (but does not need manual -std=c++11).
USE_LANGUAGES= c c++
+GCC_REQD+= 7 # C++17
USE_LIBTOOL= yes
USE_TOOLS+= autoconf automake gmake pkg-config
GNU_CONFIGURE= yes
@@ -25,6 +25,15 @@ TEST_TARGET= check
.include "../../mk/bsd.prefs.mk"
+# This package will link against libstdc++.so from the pkgsrc GCC when the
+# base OS GCC doesn't meet the minimum requirement. Thus we do this so the
+# appropriate gcc-libs package will be captured as a dependency, otherwise
+# binary packages will be broken.
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 090000
+USE_PKGSRC_GCC= yes
+USE_PKGSRC_GCC_RUNTIME= yes
+.endif
+
.if ${OS_VARIANT} == "SmartOS"
CONFIGURE_ARGS+= --disable-tests
.endif