diff options
| author | bors <bors@rust-lang.org> | 2014-07-12 04:16:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-07-12 04:16:44 +0000 |
| commit | 8a2b7a5c19d4ae83c883065b4ee53b450d45afce (patch) | |
| tree | edd43a3ec9b31c0484849d723369e846e0754933 | |
| parent | 5ad7286dc37839b7234ff51aab172e48935869d8 (diff) | |
| parent | 96418569641eecbb5d87a790ce4300658d46fd46 (diff) | |
| download | rust-8a2b7a5c19d4ae83c883065b4ee53b450d45afce.tar.gz rust-8a2b7a5c19d4ae83c883065b4ee53b450d45afce.zip | |
auto merge of #15597 : brson/rust/ldconfig, r=pcwalton
If ldconfig fails it emits a warning. This is very possible when installing to a non-system directory, so the warning tries to indicate that it may not be a problem.
| -rw-r--r-- | src/etc/install.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/etc/install.sh b/src/etc/install.sh index a89b616edf0..c949743ea75 100644 --- a/src/etc/install.sh +++ b/src/etc/install.sh @@ -466,6 +466,17 @@ while read p; do # The manifest lists all files to install done < "${CFG_SRC_DIR}/${CFG_LIBDIR_RELATIVE}/rustlib/manifest.in" +# Run ldconfig to make dynamic libraries available to the linker +if [ "$CFG_OSTYPE" = "Linux" ] + then + ldconfig + if [ $? -ne 0 ] + then + warn "failed to run ldconfig." + warn "this may happen when not installing as root and may be fine" + fi +fi + # Sanity check: can we run the installed binaries? # # As with the verification above, make sure the right LD_LIBRARY_PATH-equivalent @@ -489,13 +500,11 @@ then err "${ERR}" else echo - echo " please ensure '${CFG_PREFIX}/lib' is added to ${CFG_LD_PATH_VAR}" - echo + echo " Note: please ensure '${CFG_PREFIX}/lib' is added to ${CFG_LD_PATH_VAR}" fi fi fi - echo echo " Rust is ready to roll." echo |
