]>
Commit | Line | Data |
---|---|---|
353b0b11 | 1 | # ignore-cross-compile |
f2b60f7d | 2 | include ../tools.mk |
1a4d82fc JJ |
3 | |
4 | # The rust crate foo will link to the native library foo, while the rust crate | |
5 | # bar will link to the native library bar. There is also a dependency between | |
6 | # the native library bar to the natibe library foo. | |
7 | # | |
8 | # This test ensures that the ordering of -lfoo and -lbar on the command line is | |
9 | # correct to complete the linkage. If passed as "-lfoo -lbar", then the 'foo' | |
10 | # library will be stripped out, and the linkage will fail. | |
11 | ||
b039eaaf | 12 | all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar) |
1a4d82fc JJ |
13 | $(RUSTC) foo.rs |
14 | $(RUSTC) bar.rs | |
5099ac24 | 15 | $(RUSTC) main.rs --print link-args |