summaryrefslogtreecommitdiffstats
path: root/tests/run-make/extern-multiple-copies2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/extern-multiple-copies2/Makefile')
-rw-r--r--tests/run-make/extern-multiple-copies2/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run-make/extern-multiple-copies2/Makefile b/tests/run-make/extern-multiple-copies2/Makefile
new file mode 100644
index 000000000..708b1c1b5
--- /dev/null
+++ b/tests/run-make/extern-multiple-copies2/Makefile
@@ -0,0 +1,11 @@
+# ignore-cross-compile
+include ../tools.mk
+
+all:
+ $(RUSTC) foo1.rs
+ $(RUSTC) foo2.rs
+ mkdir $(TMPDIR)/foo
+ cp $(TMPDIR)/libfoo1.rlib $(TMPDIR)/foo/libfoo1.rlib
+ $(RUSTC) bar.rs \
+ --extern foo1=$(TMPDIR)/foo/libfoo1.rlib \
+ --extern foo2=$(TMPDIR)/libfoo2.rlib