[Buildroot] [git commit branch/2020.02.x] packages/exim: enable parallel make

Peter Korsgaard peter at korsgaard.com
Wed May 6 06:00:40 UTC 2020

commit: https://git.buildroot.net/buildroot/commit/?id=e38e29575afa4f3851044ea03b128bb38041da95
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x

Parallel make used to be broken in exim, as reported in its docs. Now that
line has disappeared from the docs, and parallel make is actually working.

Tested with 'make exim-dirclean ; time make BR2_JLEVEL=999 exim': builds
still succeed and the build time decreases from 34 to 11 seconds on my

Signed-off-by: Luca Ceresoli <luca at lucaceresoli.net>
Cc: Bernd Kuhls <bernd.kuhls at t-online.de>
Tested-by: Bernd Kuhls <bernd.kuhls at t-online.de>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 153b78ee2640938db328edb64e6c40e064154957)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/exim/exim.mk | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index 8d5b6e415b..dc445c6d93 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk
@@ -120,16 +120,14 @@ endif
 # We need the host version of macro_predef during the build, before
 # building it we need to prepare the makefile.
-# "The -j (parallel) flag must not be used with make"
-# (http://www.exim.org/exim-html-current/doc/html/spec_html/ch04.html)
-	$(TARGET_MAKE_ENV) build=br $(MAKE1) -C $(@D) makefile
-	$(HOST_MAKE_ENV) $(MAKE1) -C $(@D)/build-br macro_predef \
+	$(TARGET_MAKE_ENV) build=br $(MAKE) -C $(@D) makefile
+	$(HOST_MAKE_ENV) $(MAKE) -C $(@D)/build-br macro_predef \
 		CC=$(HOSTCC) \
 		CFLAGS="-std=c99 $(HOST_CFLAGS)" \
-	$(TARGET_MAKE_ENV) build=br $(MAKE1) -C $(@D) $(EXIM_STATIC_FLAGS) \
+	$(TARGET_MAKE_ENV) build=br $(MAKE) -C $(@D) $(EXIM_STATIC_FLAGS) \
 		CFLAGS="-std=c99 $(TARGET_CFLAGS)"
@@ -137,7 +135,7 @@ endef
 # something when installing...
 	DESTDIR=$(TARGET_DIR) INSTALL_ARG="-no_chown -no_symlink" build=br \
-	  $(MAKE1) -C $(@D) $(EXIM_STATIC_FLAGS) \
+	  $(MAKE) -C $(@D) $(EXIM_STATIC_FLAGS) \
 		CFLAGS="-std=c99 $(TARGET_CFLAGS)" \
 	chmod u+s $(TARGET_DIR)/usr/sbin/exim

More information about the buildroot mailing list