mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-02 23:07:18 +08:00
46 lines
859 B
Bash
46 lines
859 B
Bash
#!/bin/bash
|
|
|
|
source versions.sh
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
|
|
|
[ -d openssl-${openssl_version} ] && rm -rf openssl-${openssl_version}
|
|
|
|
tar -zxf ${openssl_tarball}
|
|
|
|
cd openssl-${openssl_version}
|
|
|
|
./config --prefix=/opt/openssl \
|
|
--openssldir=/opt/openssl/ssl \
|
|
--libdir=lib \
|
|
shared \
|
|
zlib-dynamic
|
|
|
|
make
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed building openssl"
|
|
fi
|
|
|
|
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
|
|
echo "running openssl make test"
|
|
HARNESS_JOBS=$(nproc) make test > ${GLSOURCES}/openssl.check.log 2>&1
|
|
fi
|
|
|
|
sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
|
|
make MANSUFFIX=ssl install
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed installing openssl"
|
|
fi
|
|
|
|
popd
|
|
|
|
# cleanup
|
|
|
|
pushd $GLSOURCES
|
|
|
|
rm -rf openssl-${openssl_version}
|
|
|
|
popd
|