Merge pull request #2101 from aria2/docker-mingw-parallel-build

Dockerfile.mingw: Parallel build
pull/2103/head
Tatsuhiro Tsujikawa 2023-09-17 21:24:24 +09:00 committed by GitHub
commit 506aac6b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -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