From 552a0482af54cd856f14c8fa138fff63d4e0b926 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 24 Oct 2025 14:50:52 +0200 Subject: toolchain: switch to semi-static toolchain --- scripts/0150-build-static-deps.sh | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 scripts/0150-build-static-deps.sh (limited to 'scripts/0150-build-static-deps.sh') diff --git a/scripts/0150-build-static-deps.sh b/scripts/0150-build-static-deps.sh new file mode 100755 index 0000000..d0a460f --- /dev/null +++ b/scripts/0150-build-static-deps.sh @@ -0,0 +1,55 @@ +#!/bin/env bash + +set -e + +mkdir -p $STATIC_DEPS_PREFIX/include $STATIC_DEPS_PREFIX/lib +mkdir -p /static-deps && cd /static-deps + +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 +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 +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 +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 +cd .. + +echo "Building static gmp..." +tar xf /downloads/gmp-$GMP_VERSION.tar.xz +cd gmp-$GMP_VERSION +./configure --prefix=$STATIC_DEPS_PREFIX --disable-shared --enable-static +make -j$(nproc) && 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 +cd .. + +echo "Building static mpc..." +tar xf /downloads/mpc-$MPC_VERSION.tar.gz +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 +cd .. -- cgit v1.2.3