summaryrefslogtreecommitdiff
path: root/toolchain/glibc
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2010-02-24 01:05:45 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-24 19:19:23 +0100
commitb96814ed6f6bbc7ec650c513f2b27f8b1dcb8ac7 (patch)
tree9a726a5b2daf1eb101c8036a0f3af8d35b1caece /toolchain/glibc
parentfde11aa6b23ac7e16931a9825166b86998e4fbe3 (diff)
toolchain: enable parallel building for gcc, glibc, binutils, gmp and mpfr
Diffstat (limited to 'toolchain/glibc')
-rw-r--r--toolchain/glibc/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index 2058c41d4..a45fe6fb6 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -43,6 +43,10 @@ ifeq ($(ADK_TARGET_NO_FPU),y)
GLIBC_CONFOPTS+= --without-fp
endif
+ifeq (${ADK_MAKE_PARALLEL},y)
+GLIBC_MAKEOPTS+= PARALLELMFLAGS="-j${ADK_MAKE_JOBS}"
+endif
+
GLIBC_BUILD_DIR_INITIAL:= ${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION)-headers
GLIBC_BUILD_DIR_FINAL:= ${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION)-final
@@ -58,7 +62,7 @@ $(WRKBUILD)/.headers_configure:
$(WRKBUILD)/.headers: $(WRKBUILD)/.headers_configure
mkdir -p $(TOOLCHAIN_SYSROOT)/usr/lib
- $(MAKE) -C $(GLIBC_BUILD_DIR_INITIAL) \
+ $(MAKE) ${GLIBC_MAKEOPTS} -C $(GLIBC_BUILD_DIR_INITIAL) \
cross-compiling=yes \
install_root=$(TOOLCHAIN_SYSROOT) \
install-headers
@@ -78,7 +82,7 @@ $(WRKBUILD)/.configured:
touch $@
$(WRKBUILD)/.compiled:
- ${GLIBC_ENV} $(MAKE) -C $(GLIBC_BUILD_DIR_FINAL) all
+ ${GLIBC_ENV} $(MAKE) ${GLIBC_MAKEOPTS} -C $(GLIBC_BUILD_DIR_FINAL) all
touch $@
$(WRKBUILD)/.installed: