mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 11:52:52 +00:00
Add 8.27 - Build pkg-config
This commit is contained in:
parent
24befb2ffd
commit
16b4d89bd1
2 changed files with 41 additions and 0 deletions
30
scripts/chapter8/8.27-pkg-config.sh
Normal file
30
scripts/chapter8/8.27-pkg-config.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf pkg-config-0.29.2.tar.gz
|
||||
cd pkg-config-0.29.2
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--with-internal-glib \
|
||||
--disable-host-tool \
|
||||
--docdir=/usr/share/doc/pkg-config-0.29.2
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
|
||||
cd /sources
|
||||
rm -rf pkg-config-0.29.2
|
||||
|
|
@ -858,3 +858,14 @@ then
|
|||
stop_script "chapter8/8.26-gcc.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.27
|
||||
# ============
|
||||
echo "Building pkg-config.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.27-pkg-config.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue