build.sh 563 B

1234567891011121314151617181920212223
  1. #!/bin/bash -eu
  2. pushd $SRC
  3. mv people.xiph.org/*.ogg decode_corpus/
  4. zip -r "$OUT/decode_fuzzer_seed_corpus.zip" decode_corpus/
  5. popd
  6. pushd $SRC/ogg
  7. ./autogen.sh
  8. ./configure --prefix="$WORK" --enable-static --disable-shared --disable-crc
  9. make clean
  10. make -j$(nproc)
  11. make install
  12. popd
  13. ./autogen.sh
  14. ./configure --prefix="$WORK" --enable-static --disable-shared
  15. make clean
  16. make -j$(nproc)
  17. make install
  18. $CXX $CXXFLAGS $SRC/vorbis/contrib/oss-fuzz/decode_fuzzer.cc -o $OUT/decode_fuzzer -L"$WORK/lib" -I"$WORK/include" $LIB_FUZZING_ENGINE -lvorbisfile -lvorbis -logg