repo/core/musl/build

28 lines
558 B
Plaintext
Raw Normal View History

2019-06-02 00:59:10 -06:00
#!/bin/sh -e
2020-11-01 05:26:35 -07:00
# Uncomment if using valgrind or similar.
# :>nostrip
2019-06-18 09:20:40 -06:00
./configure \
2019-09-04 10:46:23 -06:00
--prefix=/usr \
2020-11-01 05:26:35 -07:00
--syslibdir=/usr/lib \
# Uncomment if using valgrind or similar.
# --enable-debug
2019-06-02 00:59:10 -06:00
make
2021-07-15 03:20:53 -06:00
make install
2019-06-02 00:59:10 -06:00
2019-07-20 23:09:29 -06:00
mkdir -p "$1/usr/bin"
2020-06-06 00:25:12 -06: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 10:46:23 -06:00
# Install BSD compatibility headers.
2021-07-01 10:24:18 -06:00
cp -f cdefs.h queue.h tree.h \
"$1/usr/include/sys"
2019-09-28 09:36:37 -06:00
# Install getconf.
cc getconf.c -o "$1/usr/bin/getconf"
2020-05-20 01:22:44 -06:00
cc getent.c -o "$1/usr/bin/getent"