summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/symlinked-extern/Makefile
blob: e5061fddead0b10115cc8c893b5ba5a754408323 (plain)
1
2
3
4
5
6
7
8
9
10
11
-include ../tools.mk

# ignore-windows
# `ln` is actually `cp` on msys.

all:
	$(RUSTC) foo.rs
	mkdir -p $(TMPDIR)/other
	ln -nsf $(TMPDIR)/libfoo.rlib $(TMPDIR)/other
	$(RUSTC) bar.rs -L $(TMPDIR)
	$(RUSTC) baz.rs --extern foo=$(TMPDIR)/other/libfoo.rlib  -L $(TMPDIR)