1 -include ../../run-make-fulldeps/tools.mk
5 # Make sure -Zpacked_bundled_libs is compatible with verbatim.
7 # We're using the llvm-nm instead of the system nm to ensure it is compatible
8 # with the LLVM bitcode generated by rustc.
9 NM = "$(LLVM_BIN_DIR)"/llvm-nm
12 # Build strange-named dep.
13 $(RUSTC) native_dep.rs --crate-type=staticlib -o $(TMPDIR)/native_dep.ext
15 $(RUSTC) rust_dep.rs --crate-type=rlib -Zpacked_bundled_libs
16 $(NM) $(TMPDIR)/librust_dep.rlib | $(CGREP) -e "U.*native_f1"
17 $(AR) t $(TMPDIR)/librust_dep.rlib | $(CGREP) "native_dep.ext"
19 # Make sure compiler doesn't use files, that it shouldn't know about.
20 rm $(TMPDIR)/native_dep.ext
22 $(RUSTC) main.rs --extern rust_dep=$(TMPDIR)/librust_dep.rlib -Zpacked_bundled_libs