kumquat-buildroot/package/jemalloc/jemalloc.mk
Charles Hardin ec692f9498 jemalloc: add a check for valgrind being configured as well
jemalloc can be compiled with valgrind support being enabled
to produce proper output, so when the valgrind package has
been configured configure jemalloc appropriately.

In addition, make sure to disable valgrind support unconditionally in
the host variant of jemalloc.

Signed-off-by: Charles Hardin <ckhardin@exablox.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-09-11 22:26:49 +02:00

25 lines
678 B
Makefile

################################################################################
#
# jemalloc
#
################################################################################
JEMALLOC_VERSION = 4.2.1
JEMALLOC_SOURCE = jemalloc-$(JEMALLOC_VERSION).tar.bz2
JEMALLOC_SITE = http://www.canonware.com/download/jemalloc
JEMALLOC_LICENSE = BSD-2c
JEMALLOC_LICENSE_FILES = COPYING
JEMALLOC_INSTALL_STAGING = YES
ifeq ($(BR2_PACKAGE_VALGRIND),y)
JEMALLOC_DEPENDENCIES += valgrind
JEMALLOC_CONF_OPTS += --enable-valgrind
else
JEMALLOC_CONF_OPTS += --disable-valgrind
endif
HOST_JEMALLOC_CONF_OPTS += --disable-valgrind
$(eval $(autotools-package))
$(eval $(host-autotools-package))