install.sh: set LD_LIBRARY_PATH during install (#8808)

* install.sh: set LD_LIBRARY_PATH during install
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2023-10-19 23:17:00 -04:00
committed by GitHub
parent fc43ffde1e
commit ebddd94b92

View File

@@ -292,12 +292,13 @@ ln -sfv "../lib/crew/bin/crew" "${CREW_PREFIX}/bin/"
echo_out "Set up and synchronize local package repo..."
# Set LD_LIBRARY_PATH so crew doesn't break on i686 and
# the mandb postinstall doesn't fail.
# Set LD_LIBRARY_PATH so crew doesn't break on i686, xz doesn't fail on
# x86_64, and the mandb postinstall doesn't fail.
if [[ "$ARCH" == "i686" ]]; then
echo "LD_LIBRARY_PATH=$CREW_PREFIX/lib:/lib" >> "$CREW_PREFIX"/etc/env.d/00-library
export LD_LIBRARY_PATH=$CREW_PREFIX/lib:/lib
fi
export LD_LIBRARY_PATH="${CREW_PREFIX}/lib${LIB_SUFFIX}"
# Add the CREW_PREFIX bin and musl bin directories to PATH.
echo -e "## Inserted by Chromebrew's install.sh\nPATH=$CREW_PREFIX/bin:$CREW_PREFIX/sbin:$CREW_PREFIX/share/musl/bin:\$PATH" > "$CREW_PREFIX"/etc/env.d/path