From c9b7fc40c0084b5c09398eed133430de18492e5e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 28 May 2019 11:36:06 +0100 Subject: [PATCH] hyperscan: Limit amount of memory being used during build Signed-off-by: Michael Tremer --- lfs/hyperscan | 5 +++++ 1 file changed, 5 insertions(+) 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 ############################################################################### -- 2.39.2