8.46. Libelf from Elfutils-0.180

Libelf is a library for handling ELF (Executable and Linkable Format) files.

Approximate build time: 0.9 SBU
Required disk space: 122 MB

8.46.1. Installation of Libelf

Libelf is part of elfutils-0.180 package. Use the elfutils-0.180.tar.bz2 as the source tarball.

Prepare Libelf for compilation:

./configure --prefix=/usr --disable-debuginfod --libdir=/lib

Compile the package:


To test the results, issue:

make check

Install only Libelf:

make -C libelf install
install -vm644 config/libelf.pc /usr/lib/pkgconfig
rm /lib/libelf.a

8.46.2. Contents of Libelf

Installed Library: libelf.so
Installed Directory: /usr/include/elfutils