kumquat-buildroot/package/czmq/czmq.mk
Baruch Siach e9201d558f czmq: fix static build
libstdc++ may also need -lm.

Fixes:
http://autobuild.buildroot.net/results/aab/aab80285c54641fd7c217cdd45c4593e5c3a66c5/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-11-24 22:27:07 +01:00

32 lines
810 B
Makefile

################################################################################
#
# czmq
#
################################################################################
CZMQ_VERSION = v3.0.0
CZMQ_SITE = $(call github,zeromq,czmq,$(CZMQ_VERSION))
# Autoreconf required as we use the git tree
CZMQ_AUTORECONF = YES
CZMQ_INSTALL_STAGING = YES
CZMQ_DEPENDENCIES = zeromq
CZMQ_LICENSE = MPLv2.0
CZMQ_LICENSE_FILES = LICENSE
# asciidoc is a python script that imports unicodedata, which is not in
# host-python, so disable asciidoc entirely.
CZMQ_CONF_ENV = ac_cv_prog_czmq_have_asciidoc=no
ifeq ($(BR2_PREFER_STATIC_LIB),y)
CZMQ_CONF_OPTS += LIBS="-lstdc++ -lm"
endif
define CZMQ_CREATE_CONFIG_DIR
mkdir -p $(@D)/config
endef
CZMQ_POST_PATCH_HOOKS += CZMQ_CREATE_CONFIG_DIR
$(eval $(autotools-package))