2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 15:02:27 +00:00
repo/core/musl/build

28 lines
571 B
Plaintext
Raw Normal View History

2019-06-02 06:59:10 +00:00
#!/bin/sh -e
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"