summaryrefslogtreecommitdiffhomepage
path: root/groups.d/221.native_packages_dev.d/gdb.package
diff options
context:
space:
mode:
Diffstat (limited to 'groups.d/221.native_packages_dev.d/gdb.package')
-rw-r--r--groups.d/221.native_packages_dev.d/gdb.package17
1 files changed, 17 insertions, 0 deletions
diff --git a/groups.d/221.native_packages_dev.d/gdb.package b/groups.d/221.native_packages_dev.d/gdb.package
new file mode 100644
index 00000000..19414b77
--- /dev/null
+++ b/groups.d/221.native_packages_dev.d/gdb.package
@@ -0,0 +1,17 @@
+: ${PKG_GDB_DEPENDS:="ncurses python2"};
+: ${PKG_GDB_SHA256SUM:=149abac4add030a5713f15964bd7465bef7a23712bcc91377ca40949f33e93fb};
+: ${PKG_GDB_VERSION:=7.12};
+: ${PKG_GDB_URL:=ftp://sourceware.org/pub/gdb/releases/gdb-${PKG_GDB_VERSION}.tar.gz};
+: ${PKG_GDB_CFLAGS_CONFIGURE_EXTRA:="--sysroot=${PREFIX_NATIVE} -g3 -O0 --include=stdc-predef.h -I${PREFIX_NATIVE}/include/python2.7 -L${PREFIX_NATIVE}/lib"};
+: ${PKG_GDB_CONFIGURE_ARGS_EXTRA:="--with-system-libiberty --with-system-readline --with-system-zlib --with-python=${PWD}/files/python2_host/bin/python2.7-config"};
+: ${PKG_GDB_CXXFLAGS_CONFIGURE_EXTRA:="--sysroot=${PREFIX_NATIVE} -g3 -O0 --include=stdc-predef.h -I${PREFIX_NATIVE}/include/python2.7 -L${PREFIX_NATIVE}/lib"};
+: ${PKG_GDB_ENV_VARS_EXTRA:="CFLAGS_FOR_TARGET=-g3 -O0 --include=stdc-predef.h -I${PREFIX_NATIVE}/include/python2.7 --sysroot=${PREFIX_NATIVE}:LDFLAGS_FOR_TARGET=--sysroot=${PREFIX_NATIVE}"};
+: ${PKG_GDB_INSTALL_FILES_V2:="../obj/gdb/.libs/gdb=bin/gdb"};
+: ${PKG_GDB_LIBTOOL:=rdlibtool};
+: ${PKG_GDB_MAKEFLAGS_BUILD_EXTRA:="SYSROOT_FLAGS=--sysroot=${PREFIX_NATIVE}"};
+: ${PKG_GDB_PATCHES_EXTRA:="${BUILD_WORKDIR}/chainport/patches/gdb/gdb-${PKG_GDB_VERSION}.midipix.patch"};
+: ${PKG_GDB_VARS_FILES:="vars/gdb.vars"};
+
+ex_pkg_register "gdb" "${RTL_FILEOP_SOURCE_FNAME}" "native_packages";
+
+# vim:filetype=sh textwidth=0