2019-06-21 15:09:56 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-11-11 04:31:08 +00:00
|
|
|
patch -p1 < musl.patch
|
|
|
|
|
2020-08-01 13:47:54 +00:00
|
|
|
# Build sometimes forces -Werror.
|
|
|
|
export CFLAGS="$CFLAGS -Wno-error"
|
|
|
|
|
2021-07-28 09:35:57 +00:00
|
|
|
sh ./configure \
|
2020-08-01 10:27:23 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--disable-symbol-versioning \
|
|
|
|
--disable-debuginfod \
|
2021-07-12 00:38:43 +00:00
|
|
|
--disable-libdebuginfod \
|
2020-10-14 10:25:51 +00:00
|
|
|
--disable-nls \
|
|
|
|
ac_cv_c99=yes # Override check for Clang.
|
2020-05-26 11:17:16 +00:00
|
|
|
|
2023-03-26 11:58:51 +00:00
|
|
|
# Utility functions that need argp and fts, not strictly necessary
|
|
|
|
# for the library to function
|
|
|
|
:>libdwfl/argp-std.c
|
|
|
|
:>libdwfl/linux-kernel-modules.c
|
2020-09-11 21:58:15 +00:00
|
|
|
|
2023-03-26 11:58:51 +00:00
|
|
|
# Useless stuff
|
|
|
|
printf '%s\n' "all:" "install:" > src/Makefile
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|