Files
2026-06-02 21:38:47 +02:00

40 lines
1.2 KiB
Python

version = "0.192"
revision = 1
description = "ELF object file access library and utilities (libelf)"
license = "GPL-3.0-or-later AND LGPL-3.0-or-later"
url = "https://sourceware.org/elfutils/"
source = tarball(
url=f"https://sourceware.org/elfutils/ftp/{version}/elfutils-{version}.tar.bz2",
sha256="616099beae24aba11f9b63d86ca6cc8d566d968b802391334c91df54eab416b4",
)
host_deps = ["binutils", "gcc", "pkgconf"]
# libstdc++: elfutils builds a C++ tool (srcfiles) needing the C++ headers.
deps = [profile["libc"], "libstdc++", "zlib", "xz", "zstd"]
def configure(self):
# debuginfod would pull libcurl/microhttpd; we only need libelf for Mesa.
# elfutils builds with -Werror by default, which GCC 16 trips on.
autotools_configure(
self,
[
"--disable-debuginfod",
"--disable-libdebuginfod",
"--disable-nls",
"--enable-deterministic-archives",
"--program-prefix=eu-",
],
{
"CFLAGS": self.options["cflags"] + " -Wno-error",
"CXXFLAGS": self.options["cxxflags"] + " -Wno-error",
},
)
def build(self):
autotools_build(self)
def install(self):
autotools_install(self)