summaryrefslogtreecommitdiff
path: root/cross/avr-gdb
diff options
context:
space:
mode:
authormef <mef@pkgsrc.org>2013-08-26 01:11:34 +0000
committermef <mef@pkgsrc.org>2013-08-26 01:11:34 +0000
commitb10a58e89e7292dea1a8a87ae5c7488e3569fa42 (patch)
tree0141057a05827a89f958091abbe225376e265fb1 /cross/avr-gdb
parent6c81054f2764ba5b3762f2310a8a77526a81e540 (diff)
downloadpkgsrc-b10a58e89e7292dea1a8a87ae5c7488e3569fa42.tar.gz
(1) Recent setup for 7.6 does not support
bfd_target_elf_flavour instead only supports bfd_target_aout_flavour bfd_target_coff_flavour bfd_target_ecoff_flavour. To fix this, we need +CONFIGURE_ENV+= gdb_cv_var_elf=yes as found in native gdb setup (pkgsrc Makefile). (2) Utilize curses instead of terminfo, +CONFIGURE_ARGS+= --with-curses +# to link -lcurses.7 => /usr/lib/libcurses.so.7 +# instead of terminfo +.include "../../mk/curses.buildlink3.mk"
Diffstat (limited to 'cross/avr-gdb')
-rw-r--r--cross/avr-gdb/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/cross/avr-gdb/Makefile b/cross/avr-gdb/Makefile
index f4ea098c0f7..96b2c9f6775 100644
--- a/cross/avr-gdb/Makefile
+++ b/cross/avr-gdb/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2013/08/07 05:34:14 mef Exp $
+# $NetBSD: Makefile,v 1.19 2013/08/26 01:11:34 mef Exp $
DISTNAME= gdb-7.6
PKGNAME= ${DISTNAME:S/^/avr-/}
+PKGREVISION= 1
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
@@ -14,6 +15,15 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= CONFIG_LDFLAGS=${LDFLAGS:M*:Q}
CONFIGURE_ARGS+= --target=avr
CONFIGURE_ARGS+= --program-prefix=avr
+CONFIGURE_ARGS+= --with-curses
+
+# elfread.c is to be included in init.c to support bfd_target_elf_flavour
+CONFIGURE_ENV+= gdb_cv_var_elf=yes
+MAKE_ENV+= gdb_cv_var_elf=yes
+
+# Native gdb has following lines also activated
+#CONFIGURE_ENV+= gdb_cv_struct_lwp=yes
+#MAKE_ENV+= gdb_cv_struct_lwp=yes
INSTALLATION_DIRS= bin
TEST_TARGET= check
@@ -24,5 +34,8 @@ pre-configure:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb ${DESTDIR}${PREFIX}/bin/avr-gdb
+# to link -lcurses.7 => /usr/lib/libcurses.so.7
+# instead of terminfo
+.include "../../mk/curses.buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"