diff --git a/packages/ghostscript/build.sh b/packages/ghostscript/build.sh index ff696db79..01f8d3e75 100644 --- a/packages/ghostscript/build.sh +++ b/packages/ghostscript/build.sh @@ -20,3 +20,9 @@ CCAUX=gcc termux_step_post_extract_package() { rm -rdf $TERMUX_PKG_SRCDIR/{jpeg,libpng,expat,jasper,freetype,lcms2,tiff,openjpeg} } + +termux_step_pre_configure() { + # Use `make -j1` otherwise build may fail with error + # about missing 'arch.h'. + TERMUX_MAKE_PROCESSES=1 +}