fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1-include ../tools.mk 2 3# The rust crate foo will link to the native library foo, while the rust crate 4# bar will link to the native library bar. There is also a dependency between 5# the native library bar to the natibe library foo. 6# 7# This test ensures that the ordering of -lfoo and -lbar on the command line is 8# correct to complete the linkage. If passed as "-lfoo -lbar", then the 'foo' 9# library will be stripped out, and the linkage will fail. 10 11all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar) 12 $(RUSTC) foo.rs 13 $(RUSTC) bar.rs 14 $(RUSTC) main.rs -Z print-link-args