]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/interdependent-c-libraries/Makefile
Rollup merge of #101494 - jsha:notable-traits-right, r=GuillaumeGomez
[rust.git] / src / test / run-make-fulldeps / interdependent-c-libraries / Makefile
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
11 all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar)
12         $(RUSTC) foo.rs
13         $(RUSTC) bar.rs
14         $(RUSTC) main.rs --print link-args