tools/elfutils: enable parallel building
authorMichael Pratt <[email protected]>
Wed, 25 Sep 2024 08:28:41 +0000 (04:28 -0400)
committerRobert Marko <[email protected]>
Sat, 26 Jul 2025 12:38:09 +0000 (14:38 +0200)
There are multiple subdirectories for elfutils
and more than one is not dependent on another,
so enabling parallel building can save time
if multiple cores are available.

The change in build time for the package
is as much as 20% when cores are not in use by other jobs.

Signed-off-by: Michael Pratt <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <[email protected]>
tools/elfutils/Makefile

index ce711ac66ccadb8f44977bd78067e3cfdc79777e..294947df100a9563405cd46eaf98d0537c4995a3 100644 (file)
@@ -48,6 +48,8 @@ PKG_GNULIB_MODS = \
        strchrnul \
        tsearch
 
+HOST_BUILD_PARALLEL:=1
+
 include $(INCLUDE_DIR)/host-build.mk
 
 export $(PKG_GNULIB_BASE)=$(HOST_BUILD_DIR)/$(PKG_GNULIB_BASE)/.libs/$(PKG_GNULIB_BASE).a