Tweaked kernel CFLAGS

This commit is contained in:
Jozef Nagy 2025-05-22 11:48:51 +02:00
parent 4f39a7564e
commit b1d59e02eb
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
2 changed files with 2 additions and 4 deletions

View file

@ -47,15 +47,12 @@ KERNEL_CFLAGS := $(foreach d, $(INCLUDE_DIRS), -I$d) \
-fno-omit-frame-pointer \
-fno-stack-protector \
-fno-stack-check \
-fpic \
-fpie \
-MMD \
-MP
KERNEL_LDFLAGS := -Tarch/$(ARCH)/linker.ld \
-nostdlib \
-static \
-no-pie
-static
ifeq ($(BUILD_TYPE),debug)
KERNEL_CFLAGS += -O0 -g3