2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-17 04:00:14 -07:00
repo/extra/libelf/build

24 lines
556 B
Plaintext
Raw Normal View History

2019-06-21 09:09:56 -06:00
#!/bin/sh -e
2021-11-10 21:31:08 -07:00
patch -p1 < musl.patch
# Build sometimes forces -Werror.
export CFLAGS="$CFLAGS -Wno-error"
2021-07-28 03:35:57 -06:00
sh ./configure \
--prefix=/usr \
--disable-symbol-versioning \
--disable-debuginfod \
2021-07-11 18:38:43 -06:00
--disable-libdebuginfod \
--disable-nls \
ac_cv_c99=yes # Override check for Clang.
2020-05-26 05:17:16 -06:00
# Skip the default make target and build only what we need.
make -C lib
make -C libelf
2023-03-02 07:40:00 -07:00
make -C libelf DESTDIR="$1" install
make -C doc DESTDIR="$1" install-man3
mkdir -p "$1/usr/lib/pkgconfig"
cp -f config/libelf.pc "$1/usr/lib/pkgconfig/libelf.pc"