Open infinity0 opened 7 years ago
Oh, this is in combination with -Cprefer-dynamic
; OTOH rpath = false
appears to work by itself at least. I will experiment with moving the dylib_path_var
logic to lib.rs
or something.
Have been https://github.com/rust-lang/rust/pull/43694 fix this issue?
@infinity0 are you still running into this issue?
When experimenting with
rpath = false
inconfig.toml
for rustbuild:Setting
LD_LIBRARY_PATH
seems to fix things:I had a poke around the code and it seems that rustbuild does make some attempt to set
LD_LIBRARY_PATH
here however this is not affecting thebuild-script-build
stuff apparently.This is also causing
--no-fail env
to be ineffective for this case, presumably becausebuild-script-build
also bypasses rustbuild'srustc.rs
wrapper (which is the only place that actually does anything in reaction to--no-fail
.