Add 8.48 - Build libelf

This commit is contained in:
Aditya 2023-01-12 14:22:47 +05:30
parent d3ec0c7ff1
commit 8313733a62
2 changed files with 42 additions and 0 deletions

View 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

View file

@ -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