mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.9 - Build ztsd
This commit is contained in:
parent
b49ad61d25
commit
a6f0776a6b
2 changed files with 35 additions and 0 deletions
24
scripts/chapter8/8.9-zstd.sh
Normal file
24
scripts/chapter8/8.9-zstd.sh
Normal 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue