kernel: filter -no-plt from KCFLAGS
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tue, 21 Jun 2022 13:15:40 +0000 (14:15 +0100)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tue, 21 Jun 2022 15:41:17 +0000 (16:41 +0100)
commit24e27bec9a6df1511a504cf04cd9578a23e74657
treefd08b5aaf1ea78d5817627819f60d56848254be3
parent33e7f7c0285619c3be58ae7db5617bea9938a46a
kernel: filter -no-plt from KCFLAGS

Compiler option -no-plt will break kernel builds on some architectures
eg. (x86)  Filter this option from the recently introduced handling of
KCFLAGS vs EXTRA_OPTIMISATION

Fixes: 1d42af720c6b ("kernel: use KCFLAGS for passing EXTRA_OPTIMIZATION flags")
Suggested-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
include/kernel.mk
rules.mk