mirror of https://github.com/google/oss-fuzz.git
poppler: Fix build (#5285)
This commit is contained in:
parent
5a92458459
commit
598ba8b337
|
@ -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
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue