Skip to content

Commit 6caf3ee

Browse files
committed
Merge #8238: [WIP][depends] ZeroMQ 4.1.5 && ZMQ on Windows
a615386 [depends] ZeroMQ 4.1.5 (fanquake)
2 parents ebefe7a + a615386 commit 6caf3ee

File tree

5 files changed

+65
-8
lines changed

5 files changed

+65
-8
lines changed

configure.ac

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,15 @@ else
816816
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
817817
fi
818818

819+
if test "x$use_zmq" = "xyes"; then
820+
dnl Assume libzmq was built for static linking
821+
case $host in
822+
*mingw*)
823+
ZMQ_CFLAGS="$ZMQ_CFLAGS -DZMQ_STATIC"
824+
;;
825+
esac
826+
fi
827+
819828
BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], BITCOIN_QT_FAIL(libprotobuf not found)))
820829
if test x$use_qr != xno; then
821830
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])

depends/packages/packages.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
packages:=boost openssl libevent
2-
darwin_packages:=zeromq
3-
linux_packages:=zeromq
1+
packages:=boost openssl libevent zeromq
42
native_packages := native_ccache native_comparisontool
53

64
qt_native_packages = native_protobuf
@@ -12,7 +10,6 @@ qt_i686_linux_packages:=$(qt_x86_64_linux_packages)
1210
qt_darwin_packages=qt
1311
qt_mingw32_packages=qt
1412

15-
1613
wallet_packages=bdb
1714

1815
upnp_packages=miniupnpc

depends/packages/zeromq.mk

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
package=zeromq
2-
$(package)_version=4.1.4
3-
$(package)_download_path=http://download.zeromq.org
2+
$(package)_version=4.1.5
3+
$(package)_download_path=https://github.com/zeromq/zeromq4-1/releases/download/v$($(package)_version)/
44
$(package)_file_name=$(package)-$($(package)_version).tar.gz
5-
$(package)_sha256_hash=e99f44fde25c2e4cb84ce440f87ca7d3fe3271c2b8cfbc67d55e4de25e6fe378
5+
$(package)_sha256_hash=04aac57f081ffa3a2ee5ed04887be9e205df3a7ddade0027460b8042432bdbcf
6+
$(package)_patches=9114d3957725acd34aa8b8d011585812f3369411.patch 9e6745c12e0b100cd38acecc16ce7db02905e27c.patch
67

78
define $(package)_set_vars
8-
$(package)_config_opts=--without-documentation --disable-shared --without-libsodium
9+
$(package)_config_opts=--without-documentation --disable-shared --without-libsodium --disable-curve
910
$(package)_config_opts_linux=--with-pic
1011
$(package)_cxxflags=-std=c++11
1112
endef
1213

14+
define $(package)_preprocess_cmds
15+
patch -p1 < $($(package)_patch_dir)/9114d3957725acd34aa8b8d011585812f3369411.patch && \
16+
patch -p1 < $($(package)_patch_dir)/9e6745c12e0b100cd38acecc16ce7db02905e27c.patch && \
17+
./autogen.sh
18+
endef
19+
1320
define $(package)_config_cmds
1421
$($(package)_autoconf)
1522
endef
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From 9114d3957725acd34aa8b8d011585812f3369411 Mon Sep 17 00:00:00 2001
2+
From: Jeroen Ooms <[email protected]>
3+
Date: Tue, 20 Oct 2015 13:10:38 +0200
4+
Subject: [PATCH] enable static libraries on mingw
5+
6+
---
7+
configure.ac | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/configure.ac b/configure.ac
11+
index 393505b..e92131a 100644
12+
--- a/configure.ac
13+
+++ b/configure.ac
14+
@@ -265,7 +265,7 @@ case "${host_os}" in
15+
libzmq_dso_visibility="no"
16+
17+
if test "x$enable_static" = "xyes"; then
18+
- AC_MSG_ERROR([Building static libraries is not supported under MinGW32])
19+
+ CPPFLAGS="-DZMQ_STATIC"
20+
fi
21+
22+
# Set FD_SETSIZE to 1024
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From 9e6745c12e0b100cd38acecc16ce7db02905e27c Mon Sep 17 00:00:00 2001
2+
From: David Millard <[email protected]>
3+
Date: Tue, 10 May 2016 13:53:53 -0700
4+
Subject: [PATCH] Fix autotools for static MinGW builds
5+
6+
---
7+
configure.ac | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/configure.ac b/configure.ac
11+
index 5a0fa14..def6ea7 100644
12+
--- a/configure.ac
13+
+++ b/configure.ac
14+
@@ -259,7 +259,7 @@ case "${host_os}" in
15+
libzmq_dso_visibility="no"
16+
17+
if test "x$enable_static" = "xyes"; then
18+
- CPPFLAGS="-DZMQ_STATIC"
19+
+ CPPFLAGS="-DZMQ_STATIC $CPPFLAGS"
20+
fi
21+
22+
# Set FD_SETSIZE to 1024

0 commit comments

Comments
 (0)