File tree 3 files changed +20
-3
lines changed 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1
1
[target.x86_64-unknown-linux-musl]
2
- linker = "/opt/cross/bin/x86_64-linux-musl-gcc"
3
- rustflags = ["-C", "link-args=-static"]
2
+ linker = "./linker"
Original file line number Diff line number Diff line change 11
11
12
12
.PHONY : rust-musl
13
13
rust-musl :
14
- CXX =/opt/cross/bin/x86_64-linux-musl-g++ cargo run --target x86_64-unknown-linux-musl
14
+ CROSS_COMPILE =/opt/cross/bin/x86_64-linux-musl- cargo run --target x86_64-unknown-linux-musl
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ args=()
4
+
5
+ for arg in " $@ " ; do
6
+ if [[ $arg = * " Bdynamic" * ]]; then
7
+ args+=() # we do not want this arg
8
+ elif [[ $arg = * " crti.o" * ]]; then
9
+ args+=(" $arg " " /home/blmarket/proj/musl-cross-make/output/lib/gcc/x86_64-linux-musl/9.2.0/crtbeginS.o" " -Bstatic" )
10
+ elif [[ $arg = * " crtn.o" * ]]; then
11
+ args+=(" -lgcc" " -lgcc_eh" " -lc" " /home/blmarket/proj/musl-cross-make/output/lib/gcc/x86_64-linux-musl/9.2.0/crtendS.o" " $arg " )
12
+ else
13
+ args+=(" $arg " )
14
+ fi
15
+ done
16
+
17
+ echo " RUNNING WITH ARGS: ${args[@]} "
18
+ /opt/cross/bin/x86_64-linux-musl-g++ " ${args[@]} "
You can’t perform that action at this time.
0 commit comments