mirror of https://github.com/google/oss-fuzz.git
libxml2: Move build.sh to upstream repo (#11691)
build.sh is now maintained in the upstream libxml2 repo to facilitate changes.
This commit is contained in:
parent
dc543015c4
commit
8bf8f269ad
|
@ -16,35 +16,4 @@
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
if [ "$SANITIZER" = undefined ]; then
|
fuzz/oss-fuzz-build.sh
|
||||||
export CFLAGS="$CFLAGS -fsanitize=integer -fno-sanitize-recover=integer"
|
|
||||||
export CXXFLAGS="$CXXFLAGS -fsanitize=integer -fno-sanitize-recover=integer"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export V=1
|
|
||||||
|
|
||||||
./autogen.sh \
|
|
||||||
--disable-shared \
|
|
||||||
--without-debug \
|
|
||||||
--without-http \
|
|
||||||
--without-python
|
|
||||||
make -j$(nproc)
|
|
||||||
|
|
||||||
cd fuzz
|
|
||||||
make clean-corpus
|
|
||||||
make fuzz.o
|
|
||||||
|
|
||||||
for fuzzer in html regexp schema uri valid xinclude xml xpath; do
|
|
||||||
make $fuzzer.o
|
|
||||||
# Link with $CXX
|
|
||||||
$CXX $CXXFLAGS \
|
|
||||||
$fuzzer.o fuzz.o \
|
|
||||||
-o $OUT/$fuzzer \
|
|
||||||
$LIB_FUZZING_ENGINE \
|
|
||||||
../.libs/libxml2.a -Wl,-Bstatic -lz -llzma -Wl,-Bdynamic
|
|
||||||
|
|
||||||
[ -e seed/$fuzzer ] || make seed/$fuzzer.stamp
|
|
||||||
zip -j $OUT/${fuzzer}_seed_corpus.zip seed/$fuzzer/*
|
|
||||||
done
|
|
||||||
|
|
||||||
cp *.dict *.options $OUT/
|
|
||||||
|
|
Loading…
Reference in New Issue