dev-libs/hardened_malloc: add gcc16 support

Closes: https://bugs.gentoo.org/974723
Signed-off-by: Torben Kahnert <torben@tmak2002.dev>
This commit is contained in:
Torben Kahnert
2026-06-22 10:44:02 +02:00
parent c3a484027c
commit d26cd7d678
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Hardened allocator designed for modern systems."
HOMEPAGE="https://github.com/GrapheneOS/hardened_malloc"
SRC_URI="https://github.com/GrapheneOS/hardened_malloc/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
PATCHES=("${FILESDIR}/support-gcc16.patch")
src_test() {
emake test
}
src_compile() {
emake VARIANT=light
emake VARIANT=default
}
src_install() {
dolib.so out-light/libhardened_malloc-light.so
dolib.so out/libhardened_malloc.so
}