1 # This test ensures that if you have the same rlib or dylib at two locations
2 # in the same path that you don't hit an assertion in the compiler.
4 # Note that this relies on `liburl` to be in the path somewhere else,
5 # and then our aux-built libraries will collide with liburl (they have
6 # the same version listed)
12 $(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
13 mv $(call DYLIB,foo) $(TMPDIR)/other
14 $(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
15 $(RUSTC) bar.rs -L $(TMPDIR)/other
17 mkdir -p $(TMPDIR)/other
18 $(RUSTC) foo.rs --crate-type=rlib
19 mv $(TMPDIR)/libfoo.rlib $(TMPDIR)/other
20 $(RUSTC) foo.rs --crate-type=rlib
21 $(RUSTC) bar.rs -L $(TMPDIR)/other