jemalloc: new package

This new package provides jemalloc, a malloc(3) implementation that
emphasizes fragmentation avoidance and scalable concurrency support.

A host variant is added as it will be used by rust.

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
[Thomas:
 - remove trailing slash (noticed by Romain Naour)
 - add !BR2_STATIC_LIBS dependency (noticed by Romain Naour).]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Eric Le Bihan 2016-06-24 21:46:30 +02:00 committed by Thomas Petazzoni
parent 16ec6a6c78
commit e6cdb4dd3e
4 changed files with 29 additions and 0 deletions

View File

@ -1243,6 +1243,7 @@ menu "Other"
source "package/gmp/Config.in"
source "package/gsl/Config.in"
source "package/gtest/Config.in"
source "package/jemalloc/Config.in"
source "package/libargtable2/Config.in"
source "package/libatomic_ops/Config.in"
source "package/libbsd/Config.in"

View File

@ -0,0 +1,11 @@
config BR2_PACKAGE_JEMALLOC
bool "jemalloc"
depends on !BR2_STATIC_LIBS
help
This library providing a malloc(3) implementation that emphasizes
fragmentation avoidance and scalable concurrency support.
http://www.canonware.com/jemalloc/
comment "jemalloc needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS

View File

@ -0,0 +1,2 @@
# Locally calculated
sha256 b216ddaeb901697fe38bd30ea02d7505a4b60e8979092009f95cfda860d46acb jemalloc-4.2.0.tar.bz2

View File

@ -0,0 +1,15 @@
################################################################################
#
# jemalloc
#
################################################################################
JEMALLOC_VERSION = 4.2.0
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
$(eval $(autotools-package))
$(eval $(host-autotools-package))