Use libraries from local-rust-root directory in configure when using --enable-local-rebuild
When using --enable-local-rebuild configure options, the configure script will test rustc version. But when running it, it will not use the libraries in the local-rust-root directory. So use `LD_LIBRARY_PATH` environment variable to correct it.
This commit is contained in:
parent
a029ea343f
commit
92aa7e4252
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -901,7 +901,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CMD="${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF}"
|
CMD="${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF}"
|
||||||
LRV=`$CMD --version`
|
LRV=`LD_LIBRARY_PATH=${CFG_LOCAL_RUST_ROOT}/lib $CMD --version`
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
step_msg "failure while running $CMD --version"
|
step_msg "failure while running $CMD --version"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue