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..."