fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1-include ../tools.mk 2 3# only-linux 4 5all: 6 $(RUSTC) foo.rs 7 $(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -ldl -o $(TMPDIR)/foo 8 $(call RUN,foo) 9 $(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -ldl -pie -fPIC -o $(TMPDIR)/foo 10 $(call RUN,foo)