mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.48 - Build libelf
This commit is contained in:
parent
d3ec0c7ff1
commit
8313733a62
2 changed files with 42 additions and 0 deletions
30
scripts/chapter8/8.48-libelf.sh
Normal file
30
scripts/chapter8/8.48-libelf.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf elfutils-0.187.tar.bz2
|
||||
cd elfutils-0.187
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--disable-debuginfod \
|
||||
--enable-libdebuginfod=dummy
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make -C libelf install
|
||||
install -vm644 config/libelf.pc /usr/lib/pkgconfig
|
||||
rm /usr/lib/libelf.a
|
||||
|
||||
cd /sources
|
||||
rm -rf elfutils-0.187
|
|
@ -1115,3 +1115,15 @@ then
|
|||
stop_script "chapter8/8.47-kmod.sh"
|
||||
fi
|
||||
|
||||
# Chapter 8.48
|
||||
# ============
|
||||
echo "Building libelf"
|
||||
su -c "bash $SCRIPT/chapter8/8.48-libelf.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.48-libelf.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue