summary refs log tree commit diff
path: root/src/test/run-make/c-link-to-rust-staticlib/Makefile
blob: 477b85f362a29876e72d08d651dbdb44e3a6817d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-include ../tools.mk

ifndef IS_WINDOWS
EXTRAFLAGS := $(EXTRACFLAGS)
endif

# FIXME: ignore freebsd
ifneq ($(shell uname),FreeBSD)
all:
	$(RUSTC) foo.rs
	$(CC) bar.c -lfoo -o $(call RUN_BINFILE,bar) $(EXTRAFLAGS) -lstdc++
	$(call RUN,bar)
	rm $(call STATICLIB,foo*)
	$(call RUN,bar)

else
all:

endif