summaryrefslogtreecommitdiff
path: root/scripts/0150-build-static-deps.sh
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-05-18 13:46:11 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-05-18 13:46:11 +0200
commitf174239a122246cd43792ac75ddedd85b7214f08 (patch)
treebb1710cf22d884997b67b5c60690a737e6670eff /scripts/0150-build-static-deps.sh
parenta5c1e6fc81ef990c56305fe10deccf55373afd30 (diff)
downloadtoolchains-f174239a122246cd43792ac75ddedd85b7214f08.tar.xz
toolchains-f174239a122246cd43792ac75ddedd85b7214f08.zip
build: improve parallelization
Diffstat (limited to 'scripts/0150-build-static-deps.sh')
-rwxr-xr-xscripts/0150-build-static-deps.sh14
1 files changed, 7 insertions, 7 deletions
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 ..