build: Always define ZMQ_STATIC for MinGW

This commit is contained in:
Hennadii Stepanov committed 2020-06-13 19:59:18 +03:00
1 parent eac65d99dd
commit 9e2e753b06
1 file changed
+7 -7
+7 -7
View File
@@ -1351,19 +1351,19 @@ else
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions]) AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
fi fi
if test "x$use_zmq" = "xyes"; then if test x$use_qr != xno; then
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)])
fi
fi
if test "x$use_zmq" = xyes; then
dnl Assume libzmq was built for static linking dnl Assume libzmq was built for static linking
case $host in case $host in
*mingw*) *mingw*)
ZMQ_CFLAGS="$ZMQ_CFLAGS -DZMQ_STATIC" ZMQ_CFLAGS="$ZMQ_CFLAGS -DZMQ_STATIC"
;; ;;
esac esac
fi
if test x$use_qr != xno; then
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)])
fi
fi fi
dnl univalue check dnl univalue check