fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1include ../tools.mk 2 3# only-linux 4# ignore-cross-compile 5 6all: main.rs 7 $(RUSTC) --crate-type lib lib.rs 8 $(RUSTC) --crate-type cdylib -Clink-args="-Tlinker.ld" main.rs 9 # Ensure `#[used]` and `KEEP`-ed section is there 10 objdump -s -j".static" $(TMPDIR)/libmain.so 11 # Ensure `#[no_mangle]` symbol is there 12 nm $(TMPDIR)/libmain.so | $(CGREP) bar