8.51.3. Contents of Libelf
Installed library:
libelf.so
Installed directory:
/usr/include/elfutils
Libelf is a library for handling ELF (Executable and Linkable Format) files.
Libelf is part of the elfutils-0.192 package. Use the elfutils-0.192.tar.bz2 file as the source tarball.
Prepare Libelf for compilation:
./configure --prefix=/usr \ --disable-debuginfod \ --enable-libdebuginfod=dummy
Compile the package:
make
To test the results, issue:
make check
Install only Libelf:
make -C libelf install install -vm644 config/libelf.pc /usr/lib/pkgconfig rm /usr/lib/libelf.a
Clean previous build:
make distclean
Prepare Libelf for compilation:
CC="gcc -mx32" CXX="g++ -mx32" ./configure \ --host=x86_64-pc-linux-gnux32 \ --prefix=/usr \ --libdir=/usr/libx32 \ --disable-debuginfod \ --enable-libdebuginfod=dummy
Compile the package:
make
Install the package:
make DESTDIR=$PWD/DESTDIR -C libelf install install -vDm644 config/libelf.pc DESTDIR/usr/libx32/pkgconfig/libelf.pc cp -Rv DESTDIR/usr/libx32/* /usr/libx32 rm -rf DESTDIR