# Exit on error:
set -e

wget http://www.x.org/releases/individual/proto/bigreqsproto-1.1.2.tar.bz2
tar xf bigreqsproto-1.1.2.tar.bz2
cd bigreqsproto-1.1.2

CC=/static/bin/musl-gcc \
    LDFLAGS='-s -L/static/lib -static -static-libgcc' \
    ./configure --prefix=/static

make install
cd ..
rm -rf bigreqsproto-1.1.2
rm bigreqsproto-1.1.2.tar.bz2

exit 0
