summaryrefslogtreecommitdiff
path: root/scripts/0600-build-target-gdb.sh
diff options
context:
space:
mode:
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