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

# only-linux

all:
	$(RUSTC) foo.rs
	$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -ldl -o $(TMPDIR)/foo
	$(call RUN,foo)
	$(CC) foo.c -lfoo -L $(TMPDIR) -Wl,--gc-sections -lpthread -ldl -pie -fPIC -o $(TMPDIR)/foo
	$(call RUN,foo)