gdb: Make python detection work in cross builds

This commit is contained in:
jbu 2015-05-26 20:02:49 +02:00
parent 0e964b7bca
commit 4c3ffd4b62

View file

@ -1,7 +1,7 @@
# Template file for 'gdb'
pkgname=gdb
version=7.9.1
revision=3
revision=4
patch_args="-Np1"
build_style=gnu-configure
configure_args="--disable-werror --disable-nls --with-system-readline
@ -16,6 +16,10 @@ license="GPL-3"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=cd9c543a411a05b2b647dd38936034b68c2b5d6f10e0d51dc168c166c973ba40
if [ "${CROSS_BUILD}" ]; then
# Make python2.7 detection work in cross builds
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/python2.7"
fi
# Package build options
build_options="gdbserver static python"
desc_option_gdbserver="Enable support for building GDB server"