mirror of
https://github.com/pygos/build.git
synced 2024-11-16 16:37:10 +01:00
d049b3a9d1
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
34 lines
729 B
Text
Executable file
34 lines
729 B
Text
Executable file
VERSION="1.1.19"
|
|
SRCDIR="musl-$VERSION"
|
|
TARBALL="$SRCDIR.tar.gz"
|
|
URL="https://www.musl-libc.org/releases"
|
|
SHA256SUM="db59a8578226b98373f5b27e61f0dd29ad2456f4aa9cec587ba8c24508e4c1d9"
|
|
DEPENDS="tc-gcc1 linux_headers"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
CC="${TARGET}-gcc" $1/configure --prefix=/ --target="$TARGET"
|
|
CC="${TARGET}-gcc" make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local INPUT="$1"
|
|
local DEPLOY="$2"
|
|
local DEVDEPLOY="$3"
|
|
|
|
DESTDIR="$DEVDEPLOY" make install-headers
|
|
DESTDIR="$DEVDEPLOY" make install-libs
|
|
rm $DEVDEPLOY/lib/*.so*
|
|
|
|
DESTDIR="$DEPLOY" make install-libs
|
|
rm $DEPLOY/lib/*.a $DEPLOY/lib/*.o
|
|
|
|
mkdir -p "$DEPLOY/etc"
|
|
|
|
cat_file_merge "LDPATH" > "$DEPLOY/etc/ld-musl-${MUSL_CPU}.path"
|
|
|
|
strip_files ${DEPLOY}/lib/*
|
|
}
|