lang/perl: Add parallel build support
Signed-off-by: Marcel Denia <naoir@gmx.net>
This commit is contained in:
parent
b5967bd21b
commit
68c59c99e5
1 changed files with 7 additions and 7 deletions
|
@ -67,9 +67,9 @@ define Build/microperl/Configure
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/microperl/Compile
|
define Build/microperl/Compile
|
||||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) -f Makefile.micro \
|
+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) -f Makefile.micro \
|
||||||
CC="gcc" ugenerate_uudmap
|
CC="gcc" ugenerate_uudmap
|
||||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) -f Makefile.micro \
|
+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) -f Makefile.micro \
|
||||||
CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)"
|
CC="$(TARGET_CC)" OPTIMIZE="$(TARGET_CFLAGS)"
|
||||||
$(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/bin/
|
$(INSTALL_DIR) $(PKG_INSTALL_DIR)/usr/bin/
|
||||||
$(CP) $(PKG_BUILD_DIR)/microperl $(PKG_INSTALL_DIR)/usr/bin/
|
$(CP) $(PKG_BUILD_DIR)/microperl $(PKG_INSTALL_DIR)/usr/bin/
|
||||||
|
@ -102,7 +102,7 @@ define Build/perl/Configure
|
||||||
@echo
|
@echo
|
||||||
@echo "===> Stage 2: Build host perl binary with static extensions"
|
@echo "===> Stage 2: Build host perl binary with static extensions"
|
||||||
@echo
|
@echo
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR)/host-perl miniperl
|
+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR)/host-perl miniperl
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
@echo "===> Stage 3: Configure target perl"
|
@echo "===> Stage 3: Configure target perl"
|
||||||
|
@ -132,14 +132,14 @@ define Build/perl/Compile
|
||||||
@echo "===> Stage 4: Build target miniperl binary"
|
@echo "===> Stage 4: Build target miniperl binary"
|
||||||
@echo
|
@echo
|
||||||
install -m 0644 $(PKG_BUILD_DIR)/config.h $(PKG_BUILD_DIR)/xconfig.h
|
install -m 0644 $(PKG_BUILD_DIR)/config.h $(PKG_BUILD_DIR)/xconfig.h
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) miniperl
|
+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) miniperl
|
||||||
# Due to the new cross compiling support, make miniperl will never
|
# Due to the new cross compiling support, make miniperl will never
|
||||||
# actually link a target miniperl binary, but will always symlink
|
# actually link a target miniperl binary, but will always symlink
|
||||||
# the one from host-perl. To compensate that, we add a custom rule
|
# the one from host-perl. To compensate that, we add a custom rule
|
||||||
# to the Makefile that corresponds to the one that would have
|
# to the Makefile that corresponds to the one that would have
|
||||||
# been generated if we weren't cross compiling
|
# been generated if we weren't cross compiling
|
||||||
echo -e 'miniperl.target:\n\t$$$$(CC) $$$$(CLDFLAGS) -o miniperl.target $$$$(mini_obj) $$$$(libs)' >> $(PKG_BUILD_DIR)/Makefile
|
echo -e 'miniperl.target:\n\t$$$$(CC) $$$$(CLDFLAGS) -o miniperl.target $$$$(mini_obj) $$$$(libs)' >> $(PKG_BUILD_DIR)/Makefile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) miniperl.target
|
+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) miniperl.target
|
||||||
|
|
||||||
mkdir -p $(PKG_BUILD_DIR)/target-bin
|
mkdir -p $(PKG_BUILD_DIR)/target-bin
|
||||||
install -m 0755 $(PKG_BUILD_DIR)/miniperl.target $(PKG_BUILD_DIR)/target-bin/miniperl
|
install -m 0755 $(PKG_BUILD_DIR)/miniperl.target $(PKG_BUILD_DIR)/target-bin/miniperl
|
||||||
|
@ -147,13 +147,13 @@ define Build/perl/Compile
|
||||||
@echo
|
@echo
|
||||||
@echo "===> Stage 5: Build target perl binary"
|
@echo "===> Stage 5: Build target perl binary"
|
||||||
@echo
|
@echo
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) perl
|
+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR) perl
|
||||||
install -m 0755 $(PKG_BUILD_DIR)/perl $(PKG_BUILD_DIR)/target-bin/
|
install -m 0755 $(PKG_BUILD_DIR)/perl $(PKG_BUILD_DIR)/target-bin/
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
@echo "===> Stage 6: Build target extensions and utils"
|
@echo "===> Stage 6: Build target extensions and utils"
|
||||||
@echo
|
@echo
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
+$(MAKE) $(MAKE_J) -C $(PKG_BUILD_DIR)
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
@echo "===> Stage 7: Install Perl into staging dir"
|
@echo "===> Stage 7: Install Perl into staging dir"
|
||||||
|
|
Loading…
Reference in a new issue