#!/bin/bash -eu
cd /src/expat/expat
./buildconf.sh
./configure
make clean all
$CXX $CXXFLAGS -std=c++11 -Ilib/ \
/src/parse_fuzzer.cc -o /out/expat_parse_fuzzer \
/work/libfuzzer/*.o .libs/libexpat.a $LDFLAGS
cp /src/*.dict /src/*.options /out/