cross-compile oh yeah
This commit is contained in:
parent
7b49057cda
commit
a39b51e14d
3 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
STRIP=riscv64-linux-gnu-strip
|
||||
CC=riscv64-linux-musl-gcc
|
||||
|
||||
|
||||
.FAKE: all clean test
|
||||
|
||||
all: hello
|
||||
|
|
@ -6,7 +10,8 @@ clean:
|
|||
rm -f hello
|
||||
|
||||
hello: hello.c
|
||||
musl-gcc -static -O2 -o hello hello.c
|
||||
$(CC) -static -O2 -o hello hello.c
|
||||
$(STRIP) hello
|
||||
|
||||
test: hello
|
||||
./hello
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue