summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Gorski2023-08-10 11:08:39 +0200
committerPiotr Gorski2023-08-10 11:08:39 +0200
commitd9220330766146260b46820e49867cced861818d (patch)
tree02c05ae2fbfb1aac8bc84a2c78ae809b65662dad
parentc82a6f99cd76c0b2b86704c0955286cb1e7606ba (diff)
downloadaur-d9220330766146260b46820e49867cced861818d.tar.gz
Disable CONFIG_CPU_SRSO for thin and full LTO
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
-rw-r--r--PKGBUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 35131d272dfe..ad08196676b3 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..."