Re: [PATCH v2] kstack_erase: suppress -grecord-gcc-switches for external module builds
From: Nathan Chancellor
Date: Fri Aug 14 2026 - 18:46:55 EST
On Fri, Aug 14, 2026 at 08:23:02PM +0200, Nicolas Schier wrote:
> If there is a need for external kmods to to have
>
> make modules KCFLAGS=-gno-record-gcc-switches
Ah yeah, I forgot about KCFLAGS for the external module build. An
external module could also include
ccflags-y := -gno-record-gcc-switches
in its build file as well if this is a requirement of their build setup.
Perhaps we could revisit this within Kbuild if there is enough interest
from various parties.
--
Cheers,
Nathan