3.45. elfutils-0.180

#!/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 \
        --libdir=/lib
}

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/10.0/chapter08/libelf.html