blob: 8e984d8f64c81e4b5f5717d9be2855196472032a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/env bash
set -e
PATH=/opt/bootstrap/bin:/opt/toolchain/bin:$PATH
mkdir -p /toolchain/gdb/.build && cd /toolchain/gdb
tar xf /downloads/gdb-$GDB_VERSION.tar.xz
cd .build
../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
|