#!/bin/sh -e

patch -p0 < musl.patch

export LDFLAGS="$LDFLAGS -static"

./configure \
    --prefix=/usr \
    --without-x \
    --disable-rpath \
    --disable-nls

make
make DESTDIR="$1" install