Files
buildroot/package/jemalloc/jemalloc.mk
Bernd Kuhls 064d5eee96 package/jemalloc: fix build with gcc 16.x
Fixes:
https://autobuild.buildroot.net/results/6fb/6fbebb76cb0e6cafabad0890b8df226e9358a6c3/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 7253d50c82)
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
2026-09-23 18:38:41 +02:00

29 lines
919 B
Makefile

################################################################################
#
# jemalloc
#
################################################################################
JEMALLOC_VERSION = 5.3.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
# 0001-Replace-std-__throw_bad_alloc.patch
JEMALLOC_AUTORECONF = YES
JEMALLOC_INSTALL_STAGING = YES
JEMALLOC_CONFIG_SCRIPTS = jemalloc-config
JEMALLOC_CFLAGS = $(TARGET_CFLAGS) -D_GNU_SOURCE
# 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_CFLAGS += -O0
endif
JEMALLOC_CONF_ENV += CFLAGS="$(JEMALLOC_CFLAGS)"
$(eval $(autotools-package))
$(eval $(host-autotools-package))