summary refs log tree commit diff
path: root/src/test/run-make/c-dynamic-rlib/Makefile
blob: 18992703b2c8517a5df4b75ea4b5f54016f22360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-include ../tools.mk

# This hits an assertion in the linker on older versions of osx apparently
ifeq ($(shell uname),Darwin)
all:
	echo ignored
else
all: $(call DYLIB,cfoo)
	$(RUSTC) foo.rs
	$(RUSTC) bar.rs
	LD_LIBRARY_PATH=$(TMPDIR) $(call RUN,bar)
	rm $(TMPDIR)/$(call DYLIB_GLOB,cfoo)
	$(call FAIL,bar)
endif