diff --git a/contrib/oss-fuzz/build.sh b/contrib/oss-fuzz/build.sh index b65c2c27..b0982d30 100755 --- a/contrib/oss-fuzz/build.sh +++ b/contrib/oss-fuzz/build.sh @@ -45,10 +45,16 @@ if [ "$ARCHITECTURE" = "i386" ]; then else make lib fi + mv "$SRC"/jbigkit/libjbig/*.a "$WORK/lib/" mv "$SRC"/jbigkit/libjbig/*.h "$WORK/include/" popd +if [ "$ARCHITECTURE" = "i386" ]; then + dpkg --add-architecture i386 + apt-get install -y liblzma-dev:i386 +fi + cmake . -DCMAKE_INSTALL_PREFIX=$WORK -DBUILD_SHARED_LIBS=off make -j$(nproc) make install