From 1ec47bfa5ffd0e784b108654ac15714f38bb4aac Mon Sep 17 00:00:00 2001 From: git-bruh Date: Sun, 26 Mar 2023 17:28:51 +0530 Subject: [PATCH] libelf: build more stuff --- extra/libelf/build | 16 +++++++++------- extra/libelf/version | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/extra/libelf/build b/extra/libelf/build index 65476650..e5a6c820 100755 --- a/extra/libelf/build +++ b/extra/libelf/build @@ -13,11 +13,13 @@ sh ./configure \ --disable-nls \ ac_cv_c99=yes # Override check for Clang. -# Skip the default make target and build only what we need. -make -C lib -make -C libelf -make -C libelf DESTDIR="$1" install -make -C doc DESTDIR="$1" install-man3 +# Utility functions that need argp and fts, not strictly necessary +# for the library to function +:>libdwfl/argp-std.c +:>libdwfl/linux-kernel-modules.c -mkdir -p "$1/usr/lib/pkgconfig" -cp -f config/libelf.pc "$1/usr/lib/pkgconfig/libelf.pc" +# Useless stuff +printf '%s\n' "all:" "install:" > src/Makefile + +make +make DESTDIR="$1" install diff --git a/extra/libelf/version b/extra/libelf/version index 877b5e29..61410990 100644 --- a/extra/libelf/version +++ b/extra/libelf/version @@ -1 +1 @@ -0.189 1 +0.189 2