From f174239a122246cd43792ac75ddedd85b7214f08 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 18 May 2026 13:46:11 +0200 Subject: build: improve parallelization --- scripts/0150-build-static-deps.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'scripts/0150-build-static-deps.sh') diff --git a/scripts/0150-build-static-deps.sh b/scripts/0150-build-static-deps.sh index e954d34..1301bd6 100755 --- a/scripts/0150-build-static-deps.sh +++ b/scripts/0150-build-static-deps.sh @@ -9,28 +9,28 @@ echo "Building static zlib..." tar xf /downloads/zlib-$ZLIB_VERSION.tar.gz cd zlib-$ZLIB_VERSION ./configure --prefix=$STATIC_DEPS_PREFIX --static -make -j$(nproc) && make install +make -j$(($(nproc) * 2)) && make install cd .. echo "Building static ncurses..." tar xf /downloads/ncurses-$NCURSES_VERSION.tar.gz cd ncurses-$NCURSES_VERSION ./configure --prefix=$STATIC_DEPS_PREFIX --disable-shared --enable-static --with-termlib -make -j$(nproc) && make install +make -j$(($(nproc) * 2)) && make install cd .. echo "Building static expat..." tar xf /downloads/expat-$EXPAT_VERSION.tar.gz cd expat-$EXPAT_VERSION ./configure --prefix=$STATIC_DEPS_PREFIX --disable-shared --enable-static -make -j$(nproc) && make install +make -j$(($(nproc) * 2)) && make install cd .. echo "Building static readline..." tar xf /downloads/readline-$READLINE_VERSION.tar.gz cd readline-$READLINE_VERSION ./configure --prefix=$STATIC_DEPS_PREFIX --disable-shared --enable-static -make -j$(nproc) && make install +make -j$(($(nproc) * 2)) && make install cd .. echo "Building static gmp..." @@ -40,19 +40,19 @@ cd gmp-$GMP_VERSION sed -i 's/void g(){}/void g(int,t1 const*,t1,t2,t1 const*,int){}/' configure ## PATCH END ./configure --prefix=$STATIC_DEPS_PREFIX --disable-shared --enable-static || cat config.log -make -j$(nproc) && make install +make -j$(($(nproc) * 2)) && make install cd .. echo "Building static mpfr..." tar xf /downloads/mpfr-$MPFR_VERSION.tar.xz cd mpfr-$MPFR_VERSION ./configure --prefix=$STATIC_DEPS_PREFIX --with-gmp=$STATIC_DEPS_PREFIX --disable-shared --enable-static -make -j$(nproc) && make install +make -j$(($(nproc) * 2)) && make install cd .. echo "Building static mpc..." tar xf /downloads/mpc-$MPC_VERSION.tar.xz cd mpc-$MPC_VERSION ./configure --prefix=$STATIC_DEPS_PREFIX --with-gmp=$STATIC_DEPS_PREFIX --with-mpfr=$STATIC_DEPS_PREFIX --disable-shared --enable-static -make -j$(nproc) && make install +make -j$(($(nproc) * 2)) && make install cd .. -- cgit v1.2.3