![Peter Korsgaard](/assets/img/avatar_default.png)
Fixes (part of) http://autobuild.buildroot.net/results/23fe4365ca65f37eace8265a70fbfb9723b8ee9d/ jemalloc installs a jemalloc-config script, leaking build paths and breaking reproducible builds (and per-package builds). Add it to _CONFIG_SCRIPTS so the paths get fixed up for staging and the script removed from target. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
23 lines
778 B
Makefile
23 lines
778 B
Makefile
################################################################################
|
|
#
|
|
# jemalloc
|
|
#
|
|
################################################################################
|
|
|
|
JEMALLOC_VERSION = 5.2.1
|
|
JEMALLOC_SOURCE = jemalloc-$(JEMALLOC_VERSION).tar.bz2
|
|
JEMALLOC_SITE = https://github.com/jemalloc/jemalloc/releases/download/$(JEMALLOC_VERSION)
|
|
JEMALLOC_LICENSE = BSD-2-Clause
|
|
JEMALLOC_LICENSE_FILES = COPYING
|
|
JEMALLOC_INSTALL_STAGING = YES
|
|
JEMALLOC_CONFIG_SCRIPTS = jemalloc-config
|
|
|
|
# gcc bug internal compiler error: in merge_overlapping_regs, at
|
|
# regrename.c:304. This bug is fixed since gcc 6.
|
|
ifeq ($(BR2_or1k):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:)
|
|
JEMALLOC_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O0"
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|