From da588999d0781d2f7425c4149404637484c99cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 18 Jan 2023 14:23:54 +0100 Subject: [PATCH] Disable GCC plugins for external modules in auto.conf too auto.conf was a copy of .config before (which made GCC plugins disabled), but since it isn't the case anymore, GCC plugins need to be disabled separately. Fixes: d5fbc9f "Do not override include/config/auto.conf with .config" QubesOS/qubes-issues#7991 --- kernel.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel.spec.in b/kernel.spec.in index e7682465..a6055107 100644 --- a/kernel.spec.in +++ b/kernel.spec.in @@ -416,6 +416,8 @@ sed -e 's/^\(CONFIG_GCC_PLUGIN.*\)=y/# \1 is not set/' .config > \ %buildroot/lib/modules/%kernelrelease/build/.config sed -e '/^#define CONFIG_GCC_PLUGIN/d' include/generated/autoconf.h > \ %buildroot/lib/modules/%kernelrelease/build/include/generated/autoconf.h +sed -e '/^CONFIG_GCC_PLUGIN/d' include/config/auto.conf > \ + %buildroot/lib/modules/%kernelrelease/build/include/config/auto.conf # Make sure the Makefile and version.h have a matching timestamp so that # external modules can be built