mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.36 - Build gdbm
This commit is contained in:
parent
a474501dc2
commit
fa5e3a648b
2 changed files with 40 additions and 0 deletions
28
scripts/chapter8/8.36-gdbm.sh
Normal file
28
scripts/chapter8/8.36-gdbm.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf gdbm-1.23.tar.gz
|
||||
cd gdbm-1.23
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--enable-libgdbm-compat
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf gdbm-1.23
|
|
@ -966,3 +966,15 @@ then
|
|||
stop_script "chapter8/8.35-libtool.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.36
|
||||
# ============
|
||||
echo "Building GDBM"
|
||||
su -c "bash $SCRIPT/chapter8/8.36-gdbm.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.36-gdbm.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue