From d9220330766146260b46820e49867cced861818d Mon Sep 17 00:00:00 2001 From: Piotr Gorski Date: Thu, 10 Aug 2023 11:08:39 +0200 Subject: [PATCH] Disable CONFIG_CPU_SRSO for thin and full LTO Signed-off-by: Piotr Gorski --- PKGBUILD | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index 35131d2..ad08196 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -286,6 +286,13 @@ prepare() { "${srcdir}"/auto-cpu-optimization.sh fi + ### Disabling CONFIG_CPU_SRSO + # More infos here: https://github.com/CachyOS/linux-cachyos/issues/150 + if [ "$_use_llvm_lto" != "none" ]; then + echo "Disabling CONFIG_CPU_SRSO..." + scripts/config -d CPU_SRSO + fi + ### Selecting CachyOS config if [ -n "$_cachy_config" ]; then echo "Enabling CachyOS config..."