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.
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.
11 all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar)
14 $(RUSTC) main.rs --print link-args