about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorSébastien Marie <semarie@users.noreply.github.com>2016-09-03 14:06:38 +0200
committerSébastien Marie <semarie@users.noreply.github.com>2016-09-03 14:10:41 +0200
commit92aa7e42524ec0ce374a4463b8cff9a05b81af6f (patch)
tree2cc794ab416adf184da3a56f31d7460da0a11da6 /configure
parenta029ea343fe5c9b7cf550902b5a507cd8c22a833 (diff)
downloadrust-92aa7e42524ec0ce374a4463b8cff9a05b81af6f.tar.gz
rust-92aa7e42524ec0ce374a4463b8cff9a05b81af6f.zip
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index bcc1faea3b5..97e7ca6eaab 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"