summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/zeromq/zeromq.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk
index 7802916dfd..c1eee3ebeb 100644
--- a/package/zeromq/zeromq.mk
+++ b/package/zeromq/zeromq.mk
@@ -12,9 +12,15 @@ ZEROMQ_LICENSE = LGPLv3+ with exceptions
ZEROMQ_LICENSE_FILES = COPYING COPYING.LESSER
ZEROMQ_AUTORECONF = YES
+# Only tools/curve_keygen.c needs this, but it doesn't hurt to pass it
+# for the rest of the build as well (which automatically includes stdc++).
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+ ZEROMQ_CONF_OPT += LIBS=-lstdc++
+endif
+
ifeq ($(BR2_PACKAGE_ZEROMQ_PGM),y)
ZEROMQ_DEPENDENCIES += host-pkgconf openpgm
- ZEROMQ_CONF_OPT = --with-system-pgm
+ ZEROMQ_CONF_OPT += --with-system-pgm
endif
$(eval $(autotools-package))
OpenPOWER on IntegriCloud