Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb2cafa1 authored by Sam Ravnborg's avatar Sam Ravnborg
Browse files

kbuild: -fno-stack-protector is not good



Ubuntu gcc has hardcoded -fstack-protector - but does not understand
-fno-stack-protector-all. So only try -fno-stack-protector.

Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 0463f3c7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -310,8 +310,8 @@ CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)
CFLAGS          := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                   -fno-strict-aliasing -fno-common
# Force gcc to behave correct even for buggy distributions
CFLAGS          += $(call cc-option, -fno-stack-protector-all \
                                     -fno-stack-protector)
CFLAGS          += $(call cc-option, -fno-stack-protector)

AFLAGS          := -D__ASSEMBLY__

# Read KERNELRELEASE from include/config/kernel.release (if it exists)