2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 11:10:08 -07:00
repo/extra/libelf/build
2021-11-11 06:31:08 +02:00

24 lines
530 B
Bash
Executable File

#!/bin/sh -e
patch -p1 < musl.patch
# Build sometimes forces -Werror.
export CFLAGS="$CFLAGS -Wno-error"
sh ./configure \
--prefix=/usr \
--disable-symbol-versioning \
--disable-debuginfod \
--disable-libdebuginfod \
--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 install
make -C doc install-man3
mkdir -p "$1/usr/lib/pkgconfig"
cp -f config/libelf.pc "$1/usr/lib/pkgconfig/libelf.pc"