mirror of
https://codeberg.org/kiss-community/repo
synced 2024-11-16 03:30:23 -07:00
26 lines
663 B
Bash
Executable File
26 lines
663 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# Build sometimes forces -Werror.
|
|
export CFLAGS="$CFLAGS -Wno-error"
|
|
|
|
# Disable configure error for missing argp.
|
|
sed -i 's/as_fn_error.*libargp/: "/g' configure
|
|
|
|
# Don't compile two unrelated C files which require argp.
|
|
sed -i 's/color.*printversion../#/g' lib/Makefile.in
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--disable-symbol-versioning \
|
|
--disable-debuginfod \
|
|
--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
|
|
|
|
mkdir -p "$1/usr/lib/pkgconfig"
|
|
cp -f config/libelf.pc "$1/usr/lib/pkgconfig/libelf.pc"
|