7 echo ERROR: An error was encountered with the build.
12 bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
14 "$@" &> /tmp/build.log
24 # Ancient binutils versions don't understand debug symbols produced by more recent tools.
25 # Apparently applying `-fPIC` everywhere allows them to link successfully.
26 export CFLAGS="-fPIC $CFLAGS"
30 # may have been downloaded in a previous run
31 if [ ! -d $MUSL ]; then
32 curl https://www.musl-libc.org/releases/$MUSL.tar.gz | tar xzf -
36 ./configure --enable-debug --disable-shared --prefix=/musl-$TAG "$@"
37 if [ "$TAG" = "i586" -o "$TAG" = "i686" ]; then
38 hide_output make -j$(nproc) AR=ar RANLIB=ranlib
40 hide_output make -j$(nproc)
42 hide_output make install
43 hide_output make clean