]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
hyperscan: Limit amount of memory being used during build
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 May 2019 10:36:06 +0000 (11:36 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 May 2019 10:36:06 +0000 (11:36 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/hyperscan

index f390c827e2f5f6fba48fa56af8727d13a8a66795..79547b3bca9dfe2d0912bae795925439ea138ede 100644 (file)
@@ -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
 ###############################################################################