mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-02 23:07:18 +08:00
34 lines
652 B
Bash
34 lines
652 B
Bash
#!/bin/bash
|
|
|
|
source versions.sh
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
|
|
|
[ -d libxcrypt-${libxcrypt_version} ] && rm -rf libxcrypt-${libxcrypt_version}
|
|
|
|
tar -Jxf ${libxcrypt_tarball}
|
|
|
|
cd libxcrypt-${libxcrypt_version}
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-hashes=strong,glibc \
|
|
--enable-obsolete-api=no \
|
|
--disable-static \
|
|
--disable-failure-tokens
|
|
|
|
make
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed building libxcrypt"
|
|
fi
|
|
|
|
echo "running libxcrypt make check"
|
|
make check > ${GLSOURCES}/libxcrypt.check 2>&1
|
|
|
|
make install
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed installing libxcrypt"
|
|
fi
|
|
|