repo/extra/libelf/build
2023-03-26 17:28:51 +05:30

26 lines
550 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.
# Utility functions that need argp and fts, not strictly necessary
# for the library to function
:>libdwfl/argp-std.c
:>libdwfl/linux-kernel-modules.c
# Useless stuff
printf '%s\n' "all:" "install:" > src/Makefile
make
make DESTDIR="$1" install