summaryrefslogtreecommitdiff
path: root/scripts/0600-build-target-gdb.sh
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-10-24 14:50:52 +0200
committerFelix Morgner <felix.morgner@ost.ch>2025-10-24 14:50:52 +0200
commit552a0482af54cd856f14c8fa138fff63d4e0b926 (patch)
tree98a8961e8a765bff86d9798d80aa574189859fef /scripts/0600-build-target-gdb.sh
parent94d007b7bda07f0aa97ed5ae5e1b64bb8d6576f0 (diff)
downloadteachos-toolchain-552a0482af54cd856f14c8fa138fff63d4e0b926.tar.xz
teachos-toolchain-552a0482af54cd856f14c8fa138fff63d4e0b926.zip
toolchain: switch to semi-static toolchain
Diffstat (limited to 'scripts/0600-build-target-gdb.sh')
-rwxr-xr-xscripts/0600-build-target-gdb.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/0600-build-target-gdb.sh b/scripts/0600-build-target-gdb.sh
index 85184de..8e984d8 100755
--- a/scripts/0600-build-target-gdb.sh
+++ b/scripts/0600-build-target-gdb.sh
@@ -10,9 +10,18 @@ tar xf /downloads/gdb-$GDB_VERSION.tar.xz
cd .build
-../gdb-$GDB_VERSION/configure \
- --prefix=/opt/toolchain \
- --target=$TARGET
+../gdb-$GDB_VERSION/configure \
+ --prefix=/opt/toolchain \
+ --target=$TARGET \
+ --disable-nls \
+ --disable-werror \
+ --with-gmp=$STATIC_DEPS_PREFIX \
+ --with-mpfr=$STATIC_DEPS_PREFIX \
+ --with-python=no \
+ --with-expat=yes \
+ --with-zlib=yes \
+ CPPFLAGS="-I$STATIC_DEPS_PREFIX/include -I$STATIC_DEPS_PREFIX/include/ncursesw" \
+ LDFLAGS="-L$STATIC_DEPS_PREFIX/lib"
make -j$(nproc) all-gdb
make install-strip-gdb