Makefile: separate machine specific options, add link to gcc docs

This commit is contained in:
Imbus 2025-10-01 03:39:50 +02:00
parent c36a22c5c8
commit 5c243e3f81

View file

@ -26,11 +26,13 @@ ASFLAGS = -march=rv64gc -mabi=lp64
LDFLAGS = -Tkern/kernel.ld
LDFLAGS += -m elf64lriscv
CFLAGS = -Wall -Werror -O
CFLAGS += -Wno-unused-result
CFLAGS += -Wno-unused-variable
# See: https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/RISC-V-Options.html#index-march-14
CFLAGS += -mcmodel=medany
CFLAGS += -march=rv64gc -mabi=lp64
CFLAGS += -Wall -Werror -O
CFLAGS += -Wno-unused-result
CFLAGS += -Wno-unused-variable
CFLAGS += -ffreestanding
CFLAGS += -fno-common
CFLAGS += -nostdlib