Skip to content

Commit 92aa7e4

Browse files
committed
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.
1 parent a029ea3 commit 92aa7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ then
901901
fi
902902

903903
CMD="${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF}"
904-
LRV=`$CMD --version`
904+
LRV=`LD_LIBRARY_PATH=${CFG_LOCAL_RUST_ROOT}/lib $CMD --version`
905905
if [ $? -ne 0 ]
906906
then
907907
step_msg "failure while running $CMD --version"

0 commit comments

Comments
 (0)