summaryrefslogtreecommitdiff
path: root/Kernel/Makefile
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-04 19:02:21 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-04 19:02:21 +0100
commitba91ab1038f3cdbea85044c2f1709afd46d1f907 (patch)
tree7fe6542b721642ed414622f8f261a17e22395157 /Kernel/Makefile
parentbad2fe33ade89b058ffa40e95ab5ff5c77481120 (diff)
downloadserenity-ba91ab1038f3cdbea85044c2f1709afd46d1f907.zip
Don't omit frame pointers. Duh. This fixes /proc/PID/stack listings.
Diffstat (limited to 'Kernel/Makefile')
-rw-r--r--Kernel/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/Makefile b/Kernel/Makefile
index 0b50600ec7..8ed28871b4 100644
--- a/Kernel/Makefile
+++ b/Kernel/Makefile
@@ -57,15 +57,13 @@ STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib #-nostdinc
KERNEL_FLAGS = -ffreestanding -fno-stack-protector -fno-ident -fno-builtin
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
FLAVOR_FLAGS = -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
-OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables
+OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables -fno-omit-frame-pointer
INCLUDE_FLAGS = -I.. -I.
#SUGGEST_FLAGS = -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override #-Wsuggest-attribute=noreturn
DEFINES = -DSERENITY -DKERNEL -DSANITIZE_PTRS
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(KERNEL_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(SUGGEST_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
-#CXX = /usr/local/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-g++
-#LD = /usr/local/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-ld
CXX = clang
LD = ld
LDFLAGS = -T linker.ld --strip-debug -melf_i386 --gc-sections --build-id=none -z norelro -z now