2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-25 08:40:10 -07:00
repo/core/musl/build
2019-09-04 19:46:23 +03:00

18 lines
348 B
Bash
Executable File

#!/bin/sh -e
./configure \
--prefix=/usr \
--syslibdir=/usr/lib
make
make DESTDIR="$1" install
mkdir -p "$1/usr/bin"
ln -s "/usr/lib/ld-musl-x86_64.so.1" "$1/usr/bin/ldd"
# Install BSD compatibility headers.
mkdir -p "$1/usr/include/sys"
cp cdefs.h "$1/usr/include/sys"
cp queue.h "$1/usr/include/sys"
cp tree.h "$1/usr/include/sys"