2019-06-21 09:09:56 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-08-01 04:27:23 -06:00
|
|
|
patch -p1 < musl-decls.patch
|
2019-07-06 08:04:12 -06:00
|
|
|
|
2020-08-01 04:27:23 -06:00
|
|
|
# Disable configure error for missing argp.
|
|
|
|
sed -i 's/as_fn_error.*libargp/: "/g' configure
|
2019-06-21 09:09:56 -06:00
|
|
|
|
2020-08-01 04:27:23 -06:00
|
|
|
# Don't compile two unrelated C files which require argp.
|
|
|
|
sed -i 's/color.*printversion../#/g' lib/Makefile.in
|
2020-05-26 05:17:16 -06:00
|
|
|
|
2020-08-01 04:27:23 -06:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-symbol-versioning \
|
|
|
|
--disable-debuginfod \
|
|
|
|
--disable-nls
|
2020-05-26 05:17:16 -06:00
|
|
|
|
2020-08-01 04:27:23 -06:00
|
|
|
# Skip the default make target and build only what we need.
|
|
|
|
make -C lib
|
|
|
|
make -C libelf
|
|
|
|
make -C libelf DESTDIR="$1" install
|