poppler: Fix build (#5285)

This commit is contained in:
tsdgeos 2021-03-04 01:29:04 +01:00 committed by GitHub
parent 5a92458459
commit 598ba8b337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
################################################################################ ################################################################################
FROM gcr.io/oss-fuzz-base/base-builder FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y wget autoconf automake libtool pkg-config cmake gperf RUN apt-get update && apt-get install -y wget autoconf automake libtool pkg-config gperf
RUN pip3 install meson ninja RUN pip3 install meson ninja
RUN git clone --depth 1 https://github.com/madler/zlib.git RUN git clone --depth 1 https://github.com/madler/zlib.git

View File

@ -166,7 +166,7 @@ fuzzers=$(find $SRC/poppler/cpp/tests/fuzzing/ -name "*_fuzzer.cc")
for f in $fuzzers; do for f in $fuzzers; do
fuzzer_name=$(basename $f .cc) fuzzer_name=$(basename $f .cc)
$CXX $CXXFLAGS -std=c++11 -I$SRC/poppler/cpp \ $CXX $CXXFLAGS -std=c++11 -I$SRC/poppler/cpp -I$SRC/poppler/build/cpp \
$BUILD_CFLAGS \ $BUILD_CFLAGS \
$f -o $OUT/$fuzzer_name \ $f -o $OUT/$fuzzer_name \
$PREDEPS_LDFLAGS \ $PREDEPS_LDFLAGS \
@ -213,7 +213,7 @@ for f in $fuzzers; do
fuzzer_name=$(basename $f .cc) fuzzer_name=$(basename $f .cc)
$CXX $CXXFLAGS -std=c++11 -fPIC \ $CXX $CXXFLAGS -std=c++11 -fPIC \
-I$SRC/poppler/qt5/src \ -I$SRC/poppler/qt5/src -I$SRC/poppler/build/qt5/src \
$BUILD_CFLAGS \ $BUILD_CFLAGS \
$f -o $OUT/$fuzzer_name \ $f -o $OUT/$fuzzer_name \
$PREDEPS_LDFLAGS \ $PREDEPS_LDFLAGS \