3.47. elfutils-0.186

#!/bin/sh
# Copyright © 1999-2022 Gerard Beekmans
# Copyright © 2020-2022 Random Crew
# Distributed under the terms of MIT License.

Configuration

src_config()
{
    ./configure \
        --prefix=${PREFIX} \
        --disable-debuginfod \
        --enable-libdebuginfod=dummy
}

Compilation

src_compile()
{
    make ${MAKEOPTS}
}

Installation

src_install()
{
    make -C libelf install ${MAKEOPTS} DESTDIR=${D}
    mkdir -p ${D}${PREFIX}/lib/pkgconfig
    install -m644 config/libelf.pc ${D}${PREFIX}/lib/pkgconfig
}

Unit testing

src_check()
{
    make check
}

Build code

elfutils.build

Other files

meta.txt

Links

url.lfs: https://linuxfromscratch.org/lfs/view/11.1/chapter08/libelf.html