Update to use define file
This commit is contained in:
parent
289671b4c1
commit
c8cbefc788
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -4,7 +4,10 @@ ROOT=$(PWD)
|
||||||
export RUST_TARGET_PATH=$(ROOT)/targets
|
export RUST_TARGET_PATH=$(ROOT)/targets
|
||||||
|
|
||||||
#TODO: Use libssp
|
#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
|
# Kernel variables
|
||||||
KTARGET=$(ARCH)-unknown-none
|
KTARGET=$(ARCH)-unknown-none
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue