cross-compile oh yeah

This commit is contained in:
Brooke Vibber 2026-01-04 22:05:24 -08:00
commit a39b51e14d
3 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
STRIP=riscv64-linux-gnu-strip
CC=riscv64-linux-musl-gcc
.FAKE: all clean test .FAKE: all clean test
all: hello all: hello
@ -6,7 +10,8 @@ clean:
rm -f hello rm -f hello
hello: hello.c hello: hello.c
musl-gcc -static -O2 -o hello hello.c $(CC) -static -O2 -o hello hello.c
$(STRIP) hello
test: hello test: hello
./hello ./hello

Binary file not shown.

Binary file not shown.