From 92aa7e42524ec0ce374a4463b8cff9a05b81af6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Marie?= Date: Sat, 3 Sep 2016 14:06:38 +0200 Subject: [PATCH] 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. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index bcc1faea3b5d..97e7ca6eaabf 100755 --- a/configure +++ b/configure @@ -901,7 +901,7 @@ then fi 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 ] then step_msg "failure while running $CMD --version"