From f2e9fdf0b53eeed4f4a9d63af129ef84d1668a26 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Wed, 9 Aug 2017 21:42:08 +0100 Subject: [PATCH] Use make multicore compilation with $(nproc) --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 04a6352..a04fdf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,7 +58,8 @@ RUN curl -fL https://ftp.gnu.org/gnu/glibc/glibc-${GLIBC_VER}.tar.xz | tar xJ && --enable-lock-elision \ --enable-multi-arch \ --disable-werror && \ - make && make install_root=$(pwd)/out install + make -j "$(nproc)" && \ + make install_root=$(pwd)/out install # Copy glibc libs & generate ld cache RUN cp -d glibc-build/out/lib/*.so "${PREFIX}/lib" && \ @@ -72,7 +73,7 @@ RUN curl -fL https://busybox.net/downloads/busybox-${BUSYB_VER}.tar.bz2 \ | tar xj --strip-components=1 && \ # Use default configuration make defconfig && \ - make && \ + make -j "$(nproc)" && \ cp busybox "${PREFIX}/bin" && \ # "Install" busybox, creating symlinks to all binaries it provides bin/busybox --list-full | xargs -i ln -s /bin/busybox "${PREFIX}/{}"