Files
Arch-R/packages/debug/gdb/package.mk
Ian Leonard 08bdf2a5cd gdb: set size build flag
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-05-21 02:54:54 +00:00

43 lines
1.5 KiB
Makefile

# 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"
PKG_VERSION="8.2.1"
PKG_SHA256="0a6a432907a03c5c8eaad3c3cffd50c00a40c3a5e3c4039440624bae703f2202"
PKG_LICENSE="GPL"
PKG_SITE="http://www.gnu.org/software/gdb/"
PKG_URL="http://ftpmirror.gnu.org/gdb/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain zlib ncurses expat"
PKG_LONGDESC="GNU Project debugger, allows you to see what is going on inside another program while it executes."
PKG_BUILD_FLAGS="+size"
PKG_CONFIGURE_OPTS_TARGET="bash_cv_have_mbstate_t=set \
--disable-shared \
--enable-static \
--with-auto-load-safe-path=/ \
--disable-nls \
--disable-sim \
--without-x \
--disable-tui \
--disable-libada \
--without-lzma \
--disable-libquadmath \
--disable-libquadmath-support \
--enable-libada \
--enable-libssp \
--disable-werror"
pre_configure_target() {
CC_FOR_BUILD="$HOST_CC"
CFLAGS_FOR_BUILD="$HOST_CFLAGS"
}
makeinstall_target() {
make DESTDIR=$INSTALL install
}
post_makeinstall_target() {
rm -rf $INSTALL/usr/share/gdb/python
}