[libpng16] Revert to using the system zlib with the libpng fuzzer
This commit is contained in:
parent
98a3b2a5c2
commit
293b6aaa59
@ -31,18 +31,15 @@ cat scripts/pnglibconf.dfa | \
|
||||
> scripts/pnglibconf.dfa.temp
|
||||
mv scripts/pnglibconf.dfa.temp scripts/pnglibconf.dfa
|
||||
|
||||
# build zlib library.
|
||||
(cd ../zlib; ./configure --zprefix; make -j$(nproc) clean; make -j$(nproc) all)
|
||||
|
||||
# build the libpng library.
|
||||
cd ../libpng
|
||||
autoreconf -f -i
|
||||
CPPFLAGS="-I../zlib" LDFLAGS="-L../zlib" \
|
||||
./configure --with-zlib-prefix=z_ --with-libpng-prefix=OSS_FUZZ_
|
||||
./configure --with-libpng-prefix=OSS_FUZZ_
|
||||
make -j$(nproc) clean
|
||||
make -j$(nproc) libpng16.la
|
||||
|
||||
# build libpng_read_fuzzer.
|
||||
$CXX $CXXFLAGS -std=c++11 -I. -I../zlib -L../zlib \
|
||||
$CXX $CXXFLAGS -std=c++11 -I. \
|
||||
$SRC/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc \
|
||||
-o $OUT/libpng_read_fuzzer \
|
||||
-lFuzzingEngine .libs/libpng16.a -lz
|
||||
|
Loading…
Reference in New Issue
Block a user