diff --git a/kernel/Makefile b/kernel/Makefile index 5b4ef70a0e..bbe8061c68 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -13,7 +13,7 @@ EXEC_PREFIX?=$(PREFIX) BOOTDIR?=$(EXEC_PREFIX)/boot INCLUDEDIR?=$(PREFIX)/include -CFLAGS:=$(CFLAGS) -D__is_kernel -Iinclude -fstack-protector -ffreestanding -Wall -Wextra -Werror=return-type +CFLAGS:=$(CFLAGS) -D__is_kernel -Iinclude -fstack-protector -ffreestanding -Wall -Wextra -Werror=return-type -fno-omit-frame-pointer CPPFLAGS:=$(CPPFLAGS) -fno-rtti -fno-exceptions LDFLAGS:=$(LDFLAGS) LIBS:=$(LIBS) -nostdlib -lk -lbank -lgcc