2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2018-12-18 03:43:28 +00:00
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2011-01-09 18:37:41 +01:00
|
|
|
|
2010-11-13 13:43:06 +01:00
|
|
|
PKG_NAME="gdb"
|
2024-03-03 21:47:20 +00:00
|
|
|
PKG_VERSION="14.2"
|
|
|
|
|
PKG_SHA256="2d4dd8061d8ded12b6c63f55e45344881e8226105f4d2a9b234040efa5ce7772"
|
2010-11-13 13:43:06 +01:00
|
|
|
PKG_LICENSE="GPL"
|
2024-03-03 21:47:20 +00:00
|
|
|
PKG_SITE="https://www.gnu.org/software/gdb/"
|
2021-01-19 19:33:44 +00:00
|
|
|
PKG_URL="https://ftp.gnu.org/gnu/gdb/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2023-12-03 09:02:16 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain expat gmp mpfr ncurses zlib"
|
|
|
|
|
PKG_DEPENDS_HOST="toolchain:host expat:host gmp:host mpfr:host ncurses:host zlib:host"
|
2018-10-22 15:06:12 +02:00
|
|
|
PKG_LONGDESC="GNU Project debugger, allows you to see what is going on inside another program while it executes."
|
2019-05-20 21:58:04 +00:00
|
|
|
PKG_BUILD_FLAGS="+size"
|
2013-07-21 19:04:08 +02:00
|
|
|
|
2020-04-22 16:18:48 +02:00
|
|
|
PKG_CONFIGURE_OPTS_COMMON="bash_cv_have_mbstate_t=set \
|
2013-07-21 19:04:08 +02:00
|
|
|
--disable-shared \
|
|
|
|
|
--enable-static \
|
2016-01-28 00:54:36 +01:00
|
|
|
--with-auto-load-safe-path=/ \
|
2020-02-09 09:24:55 +00:00
|
|
|
--with-python=no \
|
|
|
|
|
--with-guile=no \
|
|
|
|
|
--with-intel-pt=no \
|
|
|
|
|
--with-babeltrace=no \
|
|
|
|
|
--with-expat=yes \
|
|
|
|
|
--disable-source-highlight \
|
2013-07-21 19:04:08 +02:00
|
|
|
--disable-nls \
|
2022-01-08 10:48:55 +00:00
|
|
|
--disable-rpath \
|
2013-07-21 19:04:08 +02:00
|
|
|
--disable-sim \
|
|
|
|
|
--without-x \
|
|
|
|
|
--disable-tui \
|
|
|
|
|
--disable-libada \
|
2014-01-25 00:59:23 +02:00
|
|
|
--without-lzma \
|
2014-02-06 23:52:41 +02:00
|
|
|
--disable-libquadmath \
|
|
|
|
|
--disable-libquadmath-support \
|
|
|
|
|
--enable-libada \
|
|
|
|
|
--enable-libssp \
|
2013-07-21 19:04:08 +02:00
|
|
|
--disable-werror"
|
|
|
|
|
|
2020-04-22 16:18:48 +02:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="${PKG_CONFIGURE_OPTS_COMMON} \
|
2021-09-24 17:40:56 +02:00
|
|
|
--with-libexpat-prefix=${SYSROOT_PREFIX}/usr \
|
|
|
|
|
--with-libgmp-prefix=${SYSROOT_PREFIX}/usr"
|
2020-04-22 16:18:48 +02:00
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="${PKG_CONFIGURE_OPTS_COMMON} \
|
|
|
|
|
--target=${TARGET_NAME}"
|
|
|
|
|
|
2018-12-18 03:43:28 +00:00
|
|
|
pre_configure_target() {
|
2021-01-19 19:33:44 +00:00
|
|
|
CC_FOR_BUILD="${HOST_CC}"
|
|
|
|
|
CFLAGS_FOR_BUILD="${HOST_CFLAGS}"
|
2018-12-18 03:43:28 +00:00
|
|
|
}
|
|
|
|
|
|
2018-02-20 10:52:17 +01:00
|
|
|
makeinstall_target() {
|
2021-01-19 19:33:44 +00:00
|
|
|
make DESTDIR=${INSTALL} install
|
2018-02-20 10:52:17 +01:00
|
|
|
}
|
|
|
|
|
|
2013-07-21 19:04:08 +02:00
|
|
|
post_makeinstall_target() {
|
2021-01-19 19:33:44 +00:00
|
|
|
rm -rf ${INSTALL}/usr/share/gdb/python
|
2013-07-21 19:04:08 +02:00
|
|
|
}
|