summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/symlinked-extern/Makefile
blob: 058f43e857a2b263126c808b72825e96335df3ce (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)