package/qt5base: fix qmake parallel build
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Mon, 22 Apr 2019 09:58:42 +0000 (11:58 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 22 Apr 2019 20:25:10 +0000 (22:25 +0200)
commita1c175cc9ecc411305dc6f0979f0dd262f2c8d5c
tree5fab69c833536edf52b18d078aedfaa80379dd48
parent9b667fd14475c4e2023d93fc0b033a13f9632319
package/qt5base: fix qmake parallel build

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:
MAKEFLAGS="$(MAKEFLAGS) -j$(PARALLEL_JOBS)"
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
./configure.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Tested-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/qt5/qt5base/qt5base.mk