fix(root/keyutils): Fix build with current toolchain

This commit is contained in:
termux-pacman-bot
2024-06-18 11:37:28 +00:00
parent 4a95748afe
commit fc85515836

View File

@@ -3,11 +3,13 @@ TERMUX_PKG_DESCRIPTION="Utilities to control the kernel key management facility"
TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.6.3
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=a61d5706136ae4c05bd48f86186bcfdbd88dd8bd5107e3e195c924cfc1b39bb4
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
CPPFLAGS+=" -Dindex=strchr -Drindex=strrchr"
# From https://bugs.gentoo.org/914637 to fix build with current toolchain:
LDFLAGS+=" -Wl,--undefined-version"
}