mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
11 lines
266 B
Makefile
11 lines
266 B
Makefile
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)
|