From cccb5e9450dff3987178d0fad4c5d05bb895477b Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 31 May 2018 20:06:07 -0700 Subject: [PATCH] fix nestegg build.sh --- projects/nestegg/build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/nestegg/build.sh b/projects/nestegg/build.sh index f108dfef4..1e496784b 100644 --- a/projects/nestegg/build.sh +++ b/projects/nestegg/build.sh @@ -1,8 +1,10 @@ #!/bin/bash -eu -$CXX $CXXFLAGS -o $OUT/fuzz -I./include src/nestegg.c test/fuzz.cc -lFuzzingEngine +$CC $CFLAGS -c -I./include src/nestegg.c +$CXX $CXXFLAGS -o $OUT/fuzz -I./include nestegg.o test/fuzz.cc -lFuzzingEngine + mkdir corpus/ -cp -R testdata/*.webm corpus/ -cp nestegg/test/media/*.webm corpus/ +cp -R ../testdata/*.webm corpus/ +cp test/media/*.webm corpus/ zip -rj0 $OUT/fuzz_seed_corpus.zip corpus/*.webm