#!/bin/sh set -eu depot_build() { export CFLAGS="${CFLAGS:+$CFLAGS } -D_GNU_SOURCE -Wno-error -Wno-null-dereference -ffat-lto-objects -g" mkdir -p build cd build ../configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-werror \ --program-prefix=eu- \ --enable-deterministic-archives \ --disable-nls \ --disable-libdebuginfod \ --disable-debuginfod \ --with-zstd make } depot_install_elfutils() { make DESTDIR="$DESTDIR" install haul libelf usr/lib/libelf* haul libelf usr/lib/libdw* haul libelf usr/lib/pkgconfig/libelf.pc haul libelf usr/lib/pkgconfig/libdw.pc haul libelf usr/include/libelf.h haul libelf usr/include/gelf.h haul libelf usr/include/nlist.h haul libelf usr/include/dwarf.h haul libelf usr/include/elfutils } depot_install_libelf() { true }