diff --git a/fuzz/oss-fuzz-build.sh b/fuzz/oss-fuzz-build.sh index 3e8945fc..07beeb10 100755 --- a/fuzz/oss-fuzz-build.sh +++ b/fuzz/oss-fuzz-build.sh @@ -41,10 +41,14 @@ make fuzz.o for fuzzer in \ api html lint reader regexp schema uri valid xinclude xml xpath do - make $fuzzer.o + OBJS="$fuzzer.o" + if [ "$fuzzer" = lint ]; then + OBJS="$OBJS ../xmllint.o ../shell.o" + fi + make $OBJS # Link with $CXX $CXX $CXXFLAGS \ - $fuzzer.o fuzz.o \ + $OBJS fuzz.o \ -o $OUT/$fuzzer \ $LIB_FUZZING_ENGINE \ ../.libs/libxml2.a -Wl,-Bstatic -lz -llzma -Wl,-Bdynamic