%general-entities; ]> libelf &elfutils-version;
&elfutils-url;
Libelf from Elfutils-&elfutils-version; Libelf <para>Libelf is a library for handling ELF (Executable and Linkable Format) files.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&elfutils-fin-sbu;</seg> <seg>&elfutils-fin-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Libelf Libelf is part of elfutils-&elfutils-version; package. Use the elfutils-&elfutils-version;.tar.bz2 as the source tarball. Prepare Libelf for compilation: ./configure --prefix=/usr \ --disable-debuginfod \ --enable-libdebuginfod=dummy \ --libdir=/lib 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 /lib/libelf.a Installation of Libelf - 32bit Clean previous build: make distclean Prepare Libtool for compilation: CC="gcc -m32" ./configure \ --prefix=/usr \ --libdir=&usr-lib-m32; \ --host=i686-pc-linux-gnu \ --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-lib-m32;/pkgconfig/libelf.pc cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32; rm -rf DESTDIR Installation of Libelf - x32bit Clean previous build: make distclean Prepare Libtool for compilation: CC="gcc -mx32" ./configure \ --prefix=/usr \ --libdir=&usr-lib-m32; \ --host=x86_64-pc-linux-gnux32 \ --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-lib-mx32;/pkgconfig/libelf.pc cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32; rm -rf DESTDIR Contents of Libelf Installed Library Installed Directory libelf.so /usr/include/elfutils