blob: 8bd5a68b45fc31781292cb45f7a56e1b119a464b (
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=/usr/bin/python${PYTHON_VERSION} \
--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
|