aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2021-09-23 17:40:08 -0300
committerRosen Penev <rosenp@gmail.com>2021-10-08 09:50:29 -0700
commit1f91016ac35ee4ef007578b0d4bbe78eaeb9db67 (patch)
tree0fce613e49c27773f5176a3ef7f9491e0f7c5d71 /devel
parent19877a952d1136e134547835d335ffc771917ccc (diff)
gcc: enable parallel building
Even though PKG_BUILD_PARALLEL is set for the package, the package calls $(MAKE) without $(PKG_JOBS), so it was always built with only one job. Fix this by adding $(PKG_JOBS) to the $(MAKE) call, and calling make install only after make all is finished. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'devel')
-rw-r--r--devel/gcc/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/gcc/Makefile b/devel/gcc/Makefile
index 4156379e5..c039ffc62 100644
--- a/devel/gcc/Makefile
+++ b/devel/gcc/Makefile
@@ -24,7 +24,7 @@ endef
PKG_NAME:=gcc
# PKG_VERSION=7.3.0
PKG_VERSION=7.4.0
-PKG_RELEASE:=6
+PKG_RELEASE:=7
PKG_SOURCE_URL:=@GNU/gcc/gcc-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_INSTALL:=1
@@ -168,8 +168,10 @@ define Build/Configure
endef
define Build/Compile
- export SHELL="$(BASH)"; $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
- DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE_ARGS) all install
+ export SHELL="$(BASH)"; $(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
+ DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE_ARGS) all
+ export SHELL="$(BASH)"; $(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
+ DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE_ARGS) install
endef
ENVCFLAGS:="$(TARGET_OPTIMIZATION) $(EXTRA_OPTIMIZATION)