php5: Enable parallel build (patch by loswillios)
authorMichael Büsch <mb@bu3sch.de>
Sat, 9 Oct 2010 16:49:03 +0000 (16:49 +0000)
committerMichael Büsch <mb@bu3sch.de>
Sat, 9 Oct 2010 16:49:03 +0000 (16:49 +0000)
SVN-Revision: 23366

lang/php5/Makefile

index 8f2efefffbf7dc3a078a6d22fe9c34ee123019cb..aa1067e1b9c03c4d8779a3e1c1f759fee22a0e76 100644 (file)
@@ -16,6 +16,7 @@ PKG_SOURCE_URL:=http://www.php.net/distributions/
 PKG_MD5SUM:=63e97ad450f0f7259e785100b634c797
 
 PKG_FIXUP:=libtool
+PKG_BUILD_PARALLEL:=1 
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -642,7 +643,7 @@ ifneq ($(CONFIG_PACKAGE_php5-cli),)
                iconv_impl_name="gnu_libiconv" \
                ac_cv_php_xml2_config_path="$(STAGING_DIR)/host/bin/xml2-config" \
        )
-       $(MAKE) -C $(PKG_BUILD_DIR)
+       $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
        mv $(PKG_BUILD_DIR)/sapi/cli/php $(PKG_BUILD_DIR)/php-cli
   endef
 endif
@@ -660,7 +661,7 @@ ifneq ($(CONFIG_PACKAGE_php5-cgi),)
                iconv_impl_name="gnu_libiconv" \
                ac_cv_php_xml2_config_path="$(STAGING_DIR)/host/bin/xml2-config" \
        )
-       $(MAKE) -C $(PKG_BUILD_DIR)
+       $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
        mv $(PKG_BUILD_DIR)/sapi/cgi/php-cgi $(PKG_BUILD_DIR)/php-cgi
   endef
 endif