hyperscan: Limit amount of memory being used during build

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-05-28 11:36:06 +01:00
parent 29fc1c8c3a
commit c9b7fc40c0

View 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
###############################################################################