mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
zealbooter: Rebase on latest limine-barebones code (#101)
This commit is contained in:
parent
d085f7b09d
commit
f397f0fa1d
1 changed files with 6 additions and 3 deletions
|
@ -24,7 +24,7 @@ $(eval $(call DEFAULT_VAR,CC,cc))
|
||||||
$(eval $(call DEFAULT_VAR,LD,ld))
|
$(eval $(call DEFAULT_VAR,LD,ld))
|
||||||
|
|
||||||
# User controllable C flags.
|
# User controllable C flags.
|
||||||
$(eval $(call DEFAULT_VAR,CFLAGS,-g -O2 -pipe -Wall -Wextra))
|
$(eval $(call DEFAULT_VAR,CFLAGS,-g -O2 -pipe))
|
||||||
|
|
||||||
# User controllable C preprocessor flags. We set none by default.
|
# User controllable C preprocessor flags. We set none by default.
|
||||||
$(eval $(call DEFAULT_VAR,CPPFLAGS,))
|
$(eval $(call DEFAULT_VAR,CPPFLAGS,))
|
||||||
|
@ -37,13 +37,15 @@ $(eval $(call DEFAULT_VAR,LDFLAGS,))
|
||||||
|
|
||||||
# Internal C flags that should not be changed by the user.
|
# Internal C flags that should not be changed by the user.
|
||||||
override CFLAGS += \
|
override CFLAGS += \
|
||||||
|
-Wall \
|
||||||
|
-Wextra \
|
||||||
-std=gnu11 \
|
-std=gnu11 \
|
||||||
-ffreestanding \
|
-ffreestanding \
|
||||||
-fno-stack-protector \
|
-fno-stack-protector \
|
||||||
-fno-stack-check \
|
-fno-stack-check \
|
||||||
-fno-lto \
|
-fno-lto \
|
||||||
-fno-pie \
|
-fno-PIE \
|
||||||
-fno-pic \
|
-fno-PIC \
|
||||||
-m64 \
|
-m64 \
|
||||||
-march=x86-64 \
|
-march=x86-64 \
|
||||||
-mabi=sysv \
|
-mabi=sysv \
|
||||||
|
@ -77,6 +79,7 @@ endif
|
||||||
|
|
||||||
# Internal nasm flags that should not be changed by the user.
|
# Internal nasm flags that should not be changed by the user.
|
||||||
override NASMFLAGS += \
|
override NASMFLAGS += \
|
||||||
|
-Wall \
|
||||||
-f elf64
|
-f elf64
|
||||||
|
|
||||||
# Use "find" to glob all *.c, *.S, and *.asm files in the tree and obtain the
|
# Use "find" to glob all *.c, *.S, and *.asm files in the tree and obtain the
|
||||||
|
|
Loading…
Reference in a new issue