Another try 3 for OSS-Fuzz

This commit is contained in:
Stefan Weil 2022-03-02 22:45:45 +01:00
parent 629944a333
commit ee91ec2da7

View File

@ -18,7 +18,7 @@
cd $SRC/leptonica cd $SRC/leptonica
./autogen.sh ./autogen.sh
./configure --disable-shared --without-giflib --without-jpeg --without-libopenjpeg --without-libpng --without-libtiff --without-libwebp --without-libwebpmux ./configure --disable-shared --without-giflib --without-jpeg --without-libopenjpeg --without-libpng --without-libwebp --without-libwebpmux
make SUBDIRS=src install -j$(nproc) make SUBDIRS=src install -j$(nproc)
ldconfig ldconfig
@ -27,7 +27,8 @@ cd $SRC/tesseract
CXXFLAGS="$CXXFLAGS -D_GLIBCXX_DEBUG" ./configure --disable-graphics --disable-shared CXXFLAGS="$CXXFLAGS -D_GLIBCXX_DEBUG" ./configure --disable-graphics --disable-shared
make -j$(nproc) make -j$(nproc)
cp -R $SRC/tessdata $OUT mkdir $OUT/tessdata
curl -L -o $OUT/tessdata/eng.traineddata https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata
LEPTONICA_LIBS=$(pkg-config --static --libs lept) LEPTONICA_LIBS=$(pkg-config --static --libs lept)