2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-16 11:40:21 -07:00
repo/core/musl/build
2020-02-14 18:15:52 +02:00

20 lines
433 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.
install -Dm 755 cdefs.h "$1/usr/include/sys/cdefs.h"
install -Dm 755 queue.h "$1/usr/include/sys/queue.h"
install -Dm 755 tree.h "$1/usr/include/sys/tree.h"
# Install getconf.
cc getconf.c -o "$1/usr/bin/getconf"