diff --git a/compile.sh b/compile.sh index e4ade12d..cc6d5556 100644 --- a/compile.sh +++ b/compile.sh @@ -560,6 +560,18 @@ install_gawk() { cd .. } +install_gdb() { + rm -rf $GDB_SRC.obj && + mkdir -p $GDB_SRC.obj && + pushd $GDB_SRC.obj && + $SOURCE/$GDB_SRC/configure --prefix=$SYS_ROOT \ + --build=$HOST \ + --host=$TARGET && + make -j$PROCS && + make install && + popd +} + install_libpciaccess () { rm -rf $LIBPCIACCESS_SRC.obj && mkdir -p $LIBPCIACCESS_SRC.obj && @@ -694,7 +706,8 @@ install_development_tools() { install_mpc && install_gcc && install_make && - install_flex + install_flex && + install_gdb } install_editors() { diff --git a/download-funcs.sh b/download-funcs.sh index 89db0e75..91b1d2e5 100644 --- a/download-funcs.sh +++ b/download-funcs.sh @@ -31,6 +31,7 @@ LIBPCIACCESS_URL=https://www.x.org/pub/individual/lib/$LIBPCIACCESS_PKG LIBXCRYPT_URL=https://github.com/besser82/libxcrypt/releases/download/v$LIBXCRYPT_VERSION/$LIBXCRYPT_PKG PARTED_URL=https://ftp.gnu.org/gnu/parted/$PARTED_PKG DMIDECODE_URL=http://download.savannah.gnu.org/releases/dmidecode/$DMIDECODE_PKG +GDB_URL=https://ftp.gnu.org/gnu/gdb/$GDB_PKG unpack () { if [ -d "$3" ]; then diff --git a/download.sh b/download.sh index b4e17b8d..58466363 100644 --- a/download.sh +++ b/download.sh @@ -40,6 +40,9 @@ unpack jxf $MPFR_PKG $MPFR_SRC && download $MPC_PKG $MPC_URL && unpack zxf $MPC_PKG $MPC_SRC && +download $GDB_PKG $GDB_URL && +unpack xf $GDB_PKG $GDB_SRC && + download_libxcrypt && download_ncurses && diff --git a/package-versions.sh b/package-versions.sh index 1261c2e0..0899465d 100644 --- a/package-versions.sh +++ b/package-versions.sh @@ -33,5 +33,6 @@ LIBPCIACCESS_VERSION=0.17 LIBXCRYPT_VERSION=4.4.36 PARTED_VERSION=3.5 DMIDECODE_VERSION=3.5 +GDB_VERSION=14.1 # Mach, Hurd and Glibc are all taken from the Git repository. diff --git a/vars.sh b/vars.sh index e8aa2d3e..071d29ff 100644 --- a/vars.sh +++ b/vars.sh @@ -79,6 +79,8 @@ PARTED_SRC=parted-$PARTED_VERSION PARTED_PKG=$PARTED_SRC.tar.xz DMIDECODE_SRC=dmidecode-$DMIDECODE_VERSION DMIDECODE_PKG=$DMIDECODE_SRC.tar.xz +GDB_SRC=gdb-$GDB_VERSION +GDB_PKG=$GDB_SRC.tar.xz print_info () {