Stream: t-compiler/help

Topic: Link static library to libstd fails for stage 1


Jake Hughes (May 18 2020 at 15:29, on Zulip):

Hi, I'm hacking around with a fork of rustc where I use a build script to link libhello.a to libstd. I build it with src/libstd/build.rs which also adds it to the library path:

println!("cargo:rustc-link-search={}", OUT_DIR); println!("cargo:rustc-link-lib=static=hello");

This works like a charm for stage0, but when building stage1 I get a linker error usr/bin/ld: cannot find -lhello. Is there some bootstrapping magic that I'm missing?

Last update: Sep 27 2020 at 14:15UTC