This renames every binary foo to foo_real, and adds a wrapper foo that sets $(DY)LD_LIBRARY_PATH appropriately before invoking foo_real. The library path is determined automatically by invoking rustc +nightly-2020-03-22 --print sysroot, so it should come up with the right path regardless of rustup install location.
This renames every binary
foo
tofoo_real
, and adds a wrapperfoo
that sets$(DY)LD_LIBRARY_PATH
appropriately before invokingfoo_real
. The library path is determined automatically by invokingrustc +nightly-2020-03-22 --print sysroot
, so it should come up with the right path regardless ofrustup
install location.Tested on Linux and macOS