repo/extra/libelf/build
Dylan Araps ee62c900f9
libelf: all hail elfutils 0.180
linux 5.8 is set to release soon and it is incompatible with
elftoolchain's libelf (dejavu). we are moving to the last
libelf library available(?), elfutils.
2020-08-01 14:10:20 +03:00

21 lines
486 B
Bash
Executable File

#!/bin/sh -e
patch -p1 < musl-decls.patch
# 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
# Skip the default make target and build only what we need.
make -C lib
make -C libelf
make -C libelf DESTDIR="$1" install