blob: 298e432cdb8ada8212cdb9670dfdd9882a861a4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# This test checks that static Rust linking with C does not encounter any errors, with static dependencies given preference over dynamic. (This is the default behaviour.)
# See https://github.com/rust-lang/rust/issues/10434
# ignore-cross-compile
include ../tools.mk
all: $(call NATIVE_STATICLIB,cfoo)
$(RUSTC) foo.rs
$(RUSTC) bar.rs
$(call REMOVE_RLIBS,foo)
rm $(call NATIVE_STATICLIB,cfoo)
$(call RUN,bar)
|