repo/core/musl/build

29 lines
673 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
make DESTDIR="$1" install
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.
2019-09-16 04:29:20 -06:00
install -Dm 755 cdefs.h "$1/usr/include/sys/cdefs.h"
2019-09-22 23:41:33 -06:00
install -Dm 755 queue.h "$1/usr/include/sys/queue.h"
install -Dm 755 tree.h "$1/usr/include/sys/tree.h"
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"