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