2019-06-02 06:59:10 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2023-11-11 00:21:08 +00:00
|
|
|
patch -p1 < elfutils-0.190-relr.patch
|
|
|
|
|
2020-11-01 12:26:35 +00:00
|
|
|
# Uncomment if using valgrind or similar.
|
|
|
|
# :>nostrip
|
|
|
|
|
2019-06-18 15:20:40 +00:00
|
|
|
./configure \
|
2019-09-04 16:46:23 +00:00
|
|
|
--prefix=/usr \
|
2020-11-01 12:26:35 +00:00
|
|
|
--syslibdir=/usr/lib \
|
|
|
|
# Uncomment if using valgrind or similar.
|
|
|
|
# --enable-debug
|
2019-06-02 06:59:10 +00:00
|
|
|
|
|
|
|
make
|
2023-03-02 14:40:00 +00:00
|
|
|
make DESTDIR="$1" install
|
2019-06-02 06:59:10 +00:00
|
|
|
|
2019-07-21 05:09:29 +00:00
|
|
|
mkdir -p "$1/usr/bin"
|
2020-06-06 06:25:12 +00:00
|
|
|
ln -s /usr/lib/ld-musl-x86_64.so.1 "$1/usr/bin/ldd"
|
|
|
|
|
|
|
|
# Fix incorrect symlink to libc.so.
|
|
|
|
ln -sf libc.so "$1/usr/lib/ld-musl-x86_64.so.1"
|
2019-09-04 16:46:23 +00:00
|
|
|
|
|
|
|
# Install BSD compatibility headers.
|
2021-07-01 16:24:18 +00:00
|
|
|
cp -f cdefs.h queue.h tree.h \
|
|
|
|
"$1/usr/include/sys"
|
2019-09-28 15:36:37 +00:00
|
|
|
|
|
|
|
# Install getconf.
|
|
|
|
cc getconf.c -o "$1/usr/bin/getconf"
|
2020-05-20 07:22:44 +00:00
|
|
|
cc getent.c -o "$1/usr/bin/getent"
|