2023-03-30 07:58:50 -05:00
|
|
|
include ../tools.mk
|
2022-09-20 02:10:17 -05:00
|
|
|
|
|
|
|
all:
|
|
|
|
# Verbatim allows specify precise name.
|
|
|
|
$(RUSTC) upstream_native_dep.rs --crate-type=staticlib -o $(TMPDIR)/upstream_some_strange_name.ext
|
2022-11-13 04:03:01 -06:00
|
|
|
$(RUSTC) rust_dep.rs -l static:+verbatim=upstream_some_strange_name.ext --crate-type rlib
|
2022-09-20 02:10:17 -05:00
|
|
|
|
|
|
|
# With verbatim any other name cannot be used (upstream).
|
|
|
|
$(RUSTC) upstream_native_dep.rs --crate-type=staticlib -o $(TMPDIR)/libupstream_native_dep.a
|
|
|
|
$(RUSTC) upstream_native_dep.rs --crate-type=staticlib -o $(TMPDIR)/upstream_native_dep.a
|
|
|
|
$(RUSTC) upstream_native_dep.rs --crate-type=staticlib -o $(TMPDIR)/upstream_native_dep.lib
|
2022-11-13 04:03:01 -06:00
|
|
|
$(RUSTC) rust_dep.rs -l static:+verbatim=upstream_native_dep --crate-type rlib 2>&1 | $(CGREP) "upstream_native_dep"
|