Makefile: separate machine specific options, add link to gcc docs
This commit is contained in:
parent
c36a22c5c8
commit
5c243e3f81
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
|
@ -26,11 +26,13 @@ ASFLAGS = -march=rv64gc -mabi=lp64
|
||||||
LDFLAGS = -Tkern/kernel.ld
|
LDFLAGS = -Tkern/kernel.ld
|
||||||
LDFLAGS += -m elf64lriscv
|
LDFLAGS += -m elf64lriscv
|
||||||
|
|
||||||
CFLAGS = -Wall -Werror -O
|
# See: https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/RISC-V-Options.html#index-march-14
|
||||||
CFLAGS += -Wno-unused-result
|
|
||||||
CFLAGS += -Wno-unused-variable
|
|
||||||
CFLAGS += -mcmodel=medany
|
CFLAGS += -mcmodel=medany
|
||||||
CFLAGS += -march=rv64gc -mabi=lp64
|
CFLAGS += -march=rv64gc -mabi=lp64
|
||||||
|
|
||||||
|
CFLAGS += -Wall -Werror -O
|
||||||
|
CFLAGS += -Wno-unused-result
|
||||||
|
CFLAGS += -Wno-unused-variable
|
||||||
CFLAGS += -ffreestanding
|
CFLAGS += -ffreestanding
|
||||||
CFLAGS += -fno-common
|
CFLAGS += -fno-common
|
||||||
CFLAGS += -nostdlib
|
CFLAGS += -nostdlib
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue