PKGNAME=jemalloc
PKGSEC=libs
PKGDEP="glibc"
PKGDES="General-purpose scalable concurrent malloc implementation"

ABSHADOW=0
NOSTATIC=0

PKGBREAK="blender<=2.75 mariadb<=10.1"

# Note: Apparently jemalloc compiled for a larger page size can operate
# on a system with a smaller page size.
# Largest possible page for arm64 is 64K = 2^16.
# Next level huge page for arm64 is 32M = 2^25.
AUTOTOOLS_AFTER__ARM64="
	--with-lg-page=16
	--with-lg-hugepage=25
"

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
