2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="gdb"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="13.2"
|
|
|
|
PKG_SHA256="fd5bebb7be1833abdb6e023c2f498a354498281df9d05523d8915babeb893f0a"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="http://www.gnu.org/software/gdb/"
|
2022-12-25 00:54:59 +00:00
|
|
|
PKG_URL="https://ftp.gnu.org/gnu/gdb/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2022-03-30 22:21:17 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain zlib ncurses expat gmp"
|
2022-12-25 00:54:59 +00:00
|
|
|
PKG_DEPENDS_HOST="toolchain:host zlib:host ncurses:host expat:host gmp:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="GNU Project debugger, allows you to see what is going on inside another program while it executes."
|
2022-12-25 00:54:59 +00:00
|
|
|
PKG_BUILD_FLAGS="+size"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-12-25 00:54:59 +00:00
|
|
|
PKG_CONFIGURE_OPTS_COMMON="bash_cv_have_mbstate_t=set \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-auto-load-safe-path=/ \
|
2022-12-25 00:54:59 +00:00
|
|
|
--with-python=no \
|
|
|
|
--with-guile=no \
|
|
|
|
--with-mpfr=no \
|
|
|
|
--with-intel-pt=no \
|
|
|
|
--with-babeltrace=no \
|
|
|
|
--with-expat=yes \
|
|
|
|
--disable-source-highlight \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-nls \
|
2022-12-25 00:54:59 +00:00
|
|
|
--disable-rpath \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-sim \
|
|
|
|
--without-x \
|
|
|
|
--disable-tui \
|
|
|
|
--disable-libada \
|
|
|
|
--without-lzma \
|
|
|
|
--disable-libquadmath \
|
|
|
|
--disable-libquadmath-support \
|
|
|
|
--enable-libada \
|
|
|
|
--enable-libssp \
|
|
|
|
--disable-werror"
|
|
|
|
|
2022-12-25 00:54:59 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="${PKG_CONFIGURE_OPTS_COMMON} \
|
|
|
|
--with-libexpat-prefix=${SYSROOT_PREFIX}/usr \
|
|
|
|
--with-libgmp-prefix=${SYSROOT_PREFIX}/usr"
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="${PKG_CONFIGURE_OPTS_COMMON} \
|
|
|
|
--target=${TARGET_NAME}"
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
pre_configure_target() {
|
2022-12-25 00:54:59 +00:00
|
|
|
CC_FOR_BUILD="${HOST_CC}"
|
|
|
|
CFLAGS_FOR_BUILD="${HOST_CFLAGS}"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-12-25 00:54:59 +00:00
|
|
|
make DESTDIR=${INSTALL} install
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2022-12-25 00:54:59 +00:00
|
|
|
rm -rf ${INSTALL}/usr/share/gdb/python
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|