From c8cbefc788fa94b35d71aa9df96993aa963e8ab8 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 2 Jan 2017 14:35:04 -0700 Subject: [PATCH] Update to use define file --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bbdbc15..46b42d3 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,10 @@ ROOT=$(PWD) export RUST_TARGET_PATH=$(ROOT)/targets #TODO: Use libssp -export CFLAGS=-fno-stack-protector -U_FORTIFY_SOURCE -I $(ROOT)/libc-artifacts/usr/include +export CFLAGS=-ffreestanding -nostartfiles -nostdlib -nodefaultlibs \ + -undef -imacros $(ROOT)/libc-artifacts/define.h \ + -isystem $(ROOT)/libc-artifacts/usr/include \ + -fno-stack-protector -U_FORTIFY_SOURCE # Kernel variables KTARGET=$(ARCH)-unknown-none