From: Michael Tremer Date: Tue, 28 May 2019 10:36:06 +0000 (+0100) Subject: hyperscan: Limit amount of memory being used during build X-Git-Tag: v2.23-core133~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9b7fc40c0084b5c09398eed133430de18492e5e;p=ipfire-2.x.git hyperscan: Limit amount of memory being used during build Signed-off-by: Michael Tremer --- diff --git a/lfs/hyperscan b/lfs/hyperscan index f390c827e2..79547b3bca 100644 --- a/lfs/hyperscan +++ b/lfs/hyperscan @@ -33,6 +33,11 @@ DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) SUP_ARCH = x86_64 i586 +# The compiler uses a lot of memory to compile hyperscan, hence we reduce +# the total number of processes a little bit to be able to build on +# smaller machines +MAX_PARALLELISM = $(shell echo $$(( $(SYSTEM_MEMORY) / 512))) + ############################################################################### # Top-level Rules ###############################################################################