diff --git a/risc_v/ch3/Makefile b/risc_v/ch3/Makefile index ddbe925..b608816 100644 --- a/risc_v/ch3/Makefile +++ b/risc_v/ch3/Makefile @@ -1,8 +1,8 @@ ##### ## BUILD ##### -CC=riscv64-unknown-linux-gnu-g++ -CFLAGS=-Wall -Wextra -pedantic -Wextra -O0 -g -std=c++17 +CC=riscv64-unknown-linux-gnu-gcc +CFLAGS=-Wall -Wextra -pedantic -Wextra -O0 -g CFLAGS+=-static -ffreestanding -nostdlib -fno-rtti -fno-exceptions CFLAGS+=-march=rv64gc -mabi=lp64 INCLUDES=