lfs-scripts/scripts/chapter8/8.48-libelf.sh
2023-01-12 14:22:47 +05:30

30 lines
422 B
Bash

#!/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