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
|
.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
|
||||||
|
|
|
||||||
BIN
hello/hello
BIN
hello/hello
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue