[Buildroot] [git commit branch/2019.02.x] package/qt5base: fix qmake parallel build

Peter Korsgaard peter at korsgaard.com
Fri Apr 26 12:47:30 UTC 2019

commit: https://git.buildroot.net/buildroot/commit/?id=2800c4e7a1b07bd44ff7a2daf3a600097cd0a5f9
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.02.x

When configuring qt5base, qmake is built, but it's not built in parallel
mode. This is due to MAKEFLAGS having 2 dashes on its tail, so this:
expands in this(i.e. 5 njobs):
MAKEFLAGS="--no-print-directory -- -j5"
and -j5 gets ignored due to "--" preceeding -j5.
Double dashes are part of $(MAKEFLAGS) only when evaluated by shell.

Swap $(MAKEFLAGS) and -j$(PARALLEL_JOBS) to avoid having "--" before
-j$(PARALLEL_JOBS), this way -j$(PARALLEL_JOBS) won't be ignored by

Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
Tested-by: Michael Trimarchi <michael at amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit a1c175cc9ecc411305dc6f0979f0dd262f2c8d5c)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/qt5/qt5base/qt5base.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index e7f6e658f1..1c20b67e4b 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -318,7 +318,7 @@ define QT5BASE_CONFIGURE_CMDS
 	(cd $(@D); \
 		./configure \
 		-v \
 		-prefix /usr \

More information about the buildroot mailing list