aboutsummaryrefslogtreecommitdiff
path: root/depends/hosts
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-05-28 09:28:14 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-06-02 18:04:24 +0300
commitf09ed92be132ebcb91b459c87d640a14b4b54336 (patch)
treeefd3d44a51d90ac545cb52c9331158d09518ecaf /depends/hosts
parent1186910b6b7ba7c7e5193c76f33f25825e6cc0b7 (diff)
downloadbitcoin-f09ed92be132ebcb91b459c87d640a14b4b54336.tar.xz
build: Try posix-specific CXX first for mingw32 host
Diffstat (limited to 'depends/hosts')
-rw-r--r--depends/hosts/mingw32.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/depends/hosts/mingw32.mk b/depends/hosts/mingw32.mk
index be5fec570c..92fd1b81bf 100644
--- a/depends/hosts/mingw32.mk
+++ b/depends/hosts/mingw32.mk
@@ -1,3 +1,7 @@
+ifneq ($(shell which $(host)-g++-posix),)
+mingw32_CXX := $(host)-g++-posix
+endif
+
mingw32_CFLAGS=-pipe
mingw32_CXXFLAGS=$(mingw32_CFLAGS)