summaryrefslogtreecommitdiff
path: root/toolchain/binutils
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/binutils
parentfde11aa6b23ac7e16931a9825166b86998e4fbe3 (diff)
toolchain: enable parallel building for gcc, glibc, binutils, gmp and mpfr
Diffstat (limited to 'toolchain/binutils')
-rw-r--r--toolchain/binutils/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index fb6beccab..c3dc45b07 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -10,6 +10,10 @@ ifeq ($(ADK_LINUX_64),y)
CONFOPTS+= --enable-64-bit-bfd
endif
+ifeq (${ADK_MAKE_PARALLEL},y)
+BINUTILS_MAKEOPTS+= -j${ADK_MAKE_JOBS}
+endif
+
$(WRKBUILD)/.headers:
$(WRKBUILD)/.configured:
(cd $(WRKBUILD); \
@@ -31,7 +35,7 @@ $(WRKBUILD)/.configured:
touch $@
$(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
- $(MAKE) -C $(WRKBUILD) all
+ $(MAKE) ${BINUTILS_MAKEOPTS} -C $(WRKBUILD) all
touch $@
$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled