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/0300-build-bootstrap-gcc.sh | |
| parent | 94d007b7bda07f0aa97ed5ae5e1b64bb8d6576f0 (diff) | |
| download | teachos-toolchain-552a0482af54cd856f14c8fa138fff63d4e0b926.tar.xz teachos-toolchain-552a0482af54cd856f14c8fa138fff63d4e0b926.zip | |
toolchain: switch to semi-static toolchain
Diffstat (limited to 'scripts/0300-build-bootstrap-gcc.sh')
| -rwxr-xr-x | scripts/0300-build-bootstrap-gcc.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/0300-build-bootstrap-gcc.sh b/scripts/0300-build-bootstrap-gcc.sh index f5c28e7..e5ee70b 100755 --- a/scripts/0300-build-bootstrap-gcc.sh +++ b/scripts/0300-build-bootstrap-gcc.sh @@ -8,6 +8,8 @@ tar xf /downloads/gcc-$GCC_VERSION.tar.xz cd gcc-$GCC_VERSION +./contrib/download_prerequisites + for PATCH in $(ls /patches/gcc-$GCC_VERSION-$TARGET/*.patch); do patch -p0 -i $PATCH done @@ -23,7 +25,11 @@ PATH=/opt/bootstrap/bin:/opt/toolchain/bin:$PATH --enable-languages=c,c++ \ --prefix=/opt/bootstrap \ --target=$TARGET \ - --without-headers + --with-as=/opt/toolchain/bin/${TARGET}-as \ + --with-ld=/opt/toolchain/bin/${TARGET}-ld \ + --without-headers \ + CPPFLAGS="-I$STATIC_DEPS_PREFIX/include" \ + LDFLAGS="-L$STATIC_DEPS_PREFIX/lib" make -j$(nproc) all-gcc make install-gcc |
