boost: add an option to run cmds in parallel
authorYegor Yefremov <yegorslists@googlemail.com>
Tue, 17 Apr 2012 22:19:46 +0000 (22:19 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 1 May 2012 19:57:19 +0000 (21:57 +0200)
Add the same -jN parameter as used for make.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/boost/boost.mk

index 9da427af5e5023ea456d90786cbbc707c51af350..366796440a08b9c910b1c59bd5a7512f69b6f2ce 100644 (file)
@@ -70,7 +70,7 @@ define BOOST_CONFIGURE_CMDS
 endef
 
 define BOOST_INSTALL_TARGET_CMDS
-       (cd $(@D) && ./b2 -q -d+2 \
+       (cd $(@D) && ./b2 -j$(BR2_JLEVEL) -q -d+2 \
        --user-config=$(@D)/user-config.jam \
        $(BOOST_OPT) \
        --prefix=$(TARGET_DIR)/usr \
@@ -78,7 +78,7 @@ define BOOST_INSTALL_TARGET_CMDS
 endef
 
 define BOOST_INSTALL_STAGING_CMDS
-       (cd $(@D) && ./bjam -d+2 \
+       (cd $(@D) && ./bjam -j$(BR2_JLEVEL) -d+2 \
        --user-config=$(@D)/user-config.jam \
        $(BOOST_OPT) \
        --prefix=$(STAGING_DIR)/usr \