Add 8.9 - Build ztsd

This commit is contained in:
Aditya 2023-01-10 15:12:09 +05:30
parent b49ad61d25
commit a6f0776a6b
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,24 @@
#!/bin/bash
cd /sources
tar xf zstd-1.5.2.tar.gz
cd zstd-1.5.2
patch -Np1 -i ../zstd-1.5.2-upstream_fixes-1.patch
make -j5 prefix=/usr
if [ $? -ne 0 ]
then
exit 1
fi
make check
make prefix=/usr install
rm -v /usr/lib/libzstd.a
cd /sources
rm -rf zstd-1.5.2

View file

@ -642,4 +642,15 @@ then
stop_script "chapter8/8.8-xz.sh" stop_script "chapter8/8.8-xz.sh"
fi fi
# Chapter 8.9
# ===========
echo "Building zstd"
su -c "bash $SCRIPT/chapter8/8.9-zstd.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.9-zstd.sh"
fi