musl has been upgraded to version 1.1.17
[dragora.git] / stages / 1 / 02-musl
blob4e0cde937822b9ff0b22988928f386c9a1a8ee1d
1 # Build script for musl
3 # Copyright (C) 2014-2017 Matias Fonzo, <selk@dragora.org>
5 # This script is free software: you have unlimited permission
6 # to copy, distribute and modify it.
8 version=1.1.17
10 rm -rf -- "${TMPDIR}/musl-${version}"
11 untar "${worktree}/sources/musl-${version}.tar.gz" "$TMPDIR"
13 # Build instructions
14 cd -- "${TMPDIR}/musl-${version}"
16 ./configure CROSS_COMPILE="${target}-" \
17  --prefix=/tools \
18  --libdir=/tools/lib${libSuffix} \
19  --syslibdir=/tools/lib \
20  --build=$host \
21  --host=$target \
22  --enable-optimize=size \
23  --disable-debug
25 make -j${jobs}
26 make DESTDIR="$rootdir" install
28 cleanup()
30     cd -- "$TMPDIR" && rm -rf musl-*