Only run ldconfig on Linux

This commit is contained in:
Brian Anderson 2014-07-11 17:08:58 -07:00
parent 5ee270a148
commit 9641856964

View File

@ -293,11 +293,9 @@ elif [ "$CFG_OSTYPE" = "Darwin" ]
then
CFG_LD_PATH_VAR=DYLD_LIBRARY_PATH
CFG_OLD_LD_PATH_VAR=$DYLD_LIBRARY_PATH
UNIX=1
else
CFG_LD_PATH_VAR=LD_LIBRARY_PATH
CFG_OLD_LD_PATH_VAR=$LD_LIBRARY_PATH
UNIX=1
fi
flag uninstall "only uninstall from the installation prefix"
@ -469,13 +467,13 @@ while read p; do
done < "${CFG_SRC_DIR}/${CFG_LIBDIR_RELATIVE}/rustlib/manifest.in"
# Run ldconfig to make dynamic libraries available to the linker
if [ $UNIX -eq 1 ]
if [ "$CFG_OSTYPE" = "Linux" ]
then
ldconfig
if [ $? -ne 0 ]
then
warn "failed to run ldconfig."
warn "this may happen when not installing as root, in which case you know what you are doing and it's probably fine."
warn "failed to run ldconfig."
warn "this may happen when not installing as root and may be fine"
fi
fi