summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <404610+tatsuhiro-t@users.noreply.github.com>2023-09-17 21:24:24 +0900
committerGitHub <noreply@github.com>2023-09-17 21:24:24 +0900
commit506aac6b4ebfc93de9bafc40e9b782fd84a07ed7 (patch)
tree62e9a26611318cf8ba7ad2a1c34246ca2ae24b76
parent06e3fdbd48ce7e29082a577b5758eb993c526812 (diff)
parent8907b8355c3fcd99b7754eae466f411f2ba3df24 (diff)
Merge pull request #2101 from aria2/docker-mingw-parallel-build
Dockerfile.mingw: Parallel build
-rw-r--r--Dockerfile.mingw14
1 files changed, 7 insertions, 7 deletions
diff --git a/Dockerfile.mingw b/Dockerfile.mingw
index 8f097dfb..846c9933 100644
--- a/Dockerfile.mingw
+++ b/Dockerfile.mingw
@@ -47,7 +47,7 @@ RUN tar xf gmp-6.3.0.tar.xz && \
--disable-cxx \
--enable-fat \
CFLAGS="-mtune=generic -O2 -g0" && \
- make install
+ make -j$(nproc) install
RUN tar xf expat-2.5.0.tar.bz2 && \
cd expat-2.5.0 && \
@@ -57,7 +57,7 @@ RUN tar xf expat-2.5.0.tar.bz2 && \
--prefix=/usr/local/$HOST \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
- make install
+ make -j$(nproc) install
RUN tar xf sqlite-autoconf-3430100.tar.gz && \
cd sqlite-autoconf-3430100 && \
@@ -67,7 +67,7 @@ RUN tar xf sqlite-autoconf-3430100.tar.gz && \
--prefix=/usr/local/$HOST \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
- make install
+ make -j$(nproc) install
RUN tar xf zlib-1.3.tar.gz && \
cd zlib-1.3 && \
@@ -81,7 +81,7 @@ RUN tar xf zlib-1.3.tar.gz && \
--libdir=/usr/local/$HOST/lib \
--includedir=/usr/local/$HOST/include \
--static && \
- make install
+ make -j$(nproc) install
RUN tar xf c-ares-1.19.1.tar.gz && \
cd c-ares-1.19.1 && \
@@ -93,7 +93,7 @@ RUN tar xf c-ares-1.19.1.tar.gz && \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
LIBS="-lws2_32" && \
- make install
+ make -j$(nproc) install
RUN tar xf libssh2-1.11.0.tar.bz2 && \
cd libssh2-1.11.0 && \
@@ -106,12 +106,12 @@ RUN tar xf libssh2-1.11.0.tar.bz2 && \
--without-openssl \
--with-wincng \
LIBS="-lws2_32" && \
- make install
+ make -j$(nproc) install
ARG ARIA2_VERSION=master
ARG ARIA2_REF=refs/heads/master
ADD https://api.github.com/repos/aria2/aria2/git/$ARIA2_REF version.json
RUN git clone -b $ARIA2_VERSION --depth 1 https://github.com/aria2/aria2 && \
- cd aria2 && autoreconf -i && ./mingw-config && make && \
+ cd aria2 && autoreconf -i && ./mingw-config && make -j$(nproc) && \
$HOST-strip src/aria2c.exe