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/0500-build-target-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/0500-build-target-gcc.sh')
| -rwxr-xr-x | scripts/0500-build-target-gcc.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/0500-build-target-gcc.sh b/scripts/0500-build-target-gcc.sh index e3053f8..47249f9 100755 --- a/scripts/0500-build-target-gcc.sh +++ b/scripts/0500-build-target-gcc.sh @@ -8,7 +8,7 @@ CFLAGS=${CFLAGS/-Werror=format-security/} CXXFLAGS=${CXXFLAGS/-Werror=format-security/} PATH=/opt/bootstrap/bin:/opt/toolchain/bin:$PATH -../gcc-$GCC_VERSION/configure \ +../gcc-$GCC_VERSION/configure \ --disable-hosted-libstdcxx \ --disable-nls \ --disable-tm-clone-registry \ @@ -21,7 +21,9 @@ PATH=/opt/bootstrap/bin:/opt/toolchain/bin:$PATH --prefix=/opt/toolchain \ --target=$TARGET \ --with-mcmodel=kernel \ - --with-newlib + --with-newlib \ + CPPFLAGS="-I$STATIC_DEPS_PREFIX/include" \ + LDFLAGS="-L$STATIC_DEPS_PREFIX/lib" make -j$(nproc) all-gcc make install-strip-gcc |
