diff options
author | Eric Sandall | 2019-05-31 05:48:57 +0000 |
---|---|---|
committer | Eric Sandall | 2019-05-31 05:48:57 +0000 |
commit | 4dfb58481a40cc25f35f56387c9fba1365546f6c (patch) | |
tree | c476cc0104050a1af6fd0c1399c3228372466e29 /protect_special_libs | |
parent | 4242ec751cf0ee39c2ea3498a0845e8194b7f85c (diff) |
protect_special_libs: Export LD_LIBRARY_PATH to include $PROTECT path
Otherwise $PROTECT does nothing effective (e.g. when readline updates)
even with `ldconfig $PROTECT` being run
Diffstat (limited to 'protect_special_libs')
-rw-r--r-- | protect_special_libs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/protect_special_libs b/protect_special_libs index f4532602cb..ef696a4e28 100644 --- a/protect_special_libs +++ b/protect_special_libs @@ -14,15 +14,16 @@ if [[ -z $INSTALL_ROOT ]]; then local each && for each in /lib{,64,32}/*; do if test -f "$each"; then - cp -a "$each" $PROTECT + cp -a "$each" "$PROTECT" fi done && - ldconfig $PROTECT + export LD_LIBRARY_PATH="${PROTECT}:${LD_LIBRARY_PATH}" && + ldconfig "$PROTECT" } fi # some spells, such as glibc may need some special processing between calls to -# these two fucnctions +# these two functions do_dispel() { message "${MESSAGE_COLOR}Dispelling $SPELL${DEFAULT_COLOR}" && |