From 2c3b9bbdb114cc13b6ef8e0e5933c9e374fca8b6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 12 Mar 2024 00:45:59 +0000 Subject: gentoo auto-resync : 12:03:2024 - 00:45:59 --- sys-libs/glibc/glibc-9999.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys-libs/glibc/glibc-9999.ebuild') diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild index f82a00f91c2f..5a0caff2e597 100644 --- a/sys-libs/glibc/glibc-9999.ebuild +++ b/sys-libs/glibc/glibc-9999.ebuild @@ -512,8 +512,12 @@ setup_flags() { # should not be a problem, but for glibc it matters as it is # dealing with CET in ld.so. So if CET is supposed to be # disabled for glibc, be explicit about it. - if (use amd64 || use x86) && ! use cet; then - append-flags '-fcf-protection=none' + if ! use cet; then + if use amd64 || use x86; then + append-flags '-fcf-protection=none' + elif use arm64; then + append-flags '-mbranch-protection=none' + fi fi } -- cgit v1.2.3