diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-10-24 14:50:52 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-10-24 14:50:52 +0200 |
| commit | 552a0482af54cd856f14c8fa138fff63d4e0b926 (patch) | |
| tree | 98a8961e8a765bff86d9798d80aa574189859fef /scripts/0150-build-static-deps.sh | |
| parent | 94d007b7bda07f0aa97ed5ae5e1b64bb8d6576f0 (diff) | |
| download | teachos-toolchain-552a0482af54cd856f14c8fa138fff63d4e0b926.tar.xz teachos-toolchain-552a0482af54cd856f14c8fa138fff63d4e0b926.zip | |
toolchain: switch to semi-static toolchain
Diffstat (limited to 'scripts/0150-build-static-deps.sh')
| -rwxr-xr-x | scripts/0150-build-static-deps.sh | 55 |
1 files changed, 55 insertions, 0 deletions
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 .. |
