summaryrefslogtreecommitdiffstats
path: root/tests/run-make/c-static-dylib/Makefile
blob: 4e23edb6c57a4e5ab344c1f8ac0843d38443c3df (plain)
1
2
3
4
5
6
7
8
9
10
# ignore-cross-compile
include ../tools.mk

all: $(call NATIVE_STATICLIB,cfoo)
	$(RUSTC) foo.rs -C prefer-dynamic
	$(RUSTC) bar.rs
	rm $(call NATIVE_STATICLIB,cfoo)
	$(call RUN,bar)
	$(call REMOVE_DYLIBS,foo)
	$(call FAIL,bar)