aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gdb/gdb-cross.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gdb/gdb-cross.inc')
-rw-r--r--recipes/gdb/gdb-cross.inc24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/gdb/gdb-cross.inc b/recipes/gdb/gdb-cross.inc
new file mode 100644
index 0000000000..6d4c3d177e
--- /dev/null
+++ b/recipes/gdb/gdb-cross.inc
@@ -0,0 +1,24 @@
+require gdb-common.inc
+
+DEPENDS = "ncurses-native"
+
+EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
+
+EXTRA_OECONF = "--with-curses --with-readline"
+
+do_configure () {
+# override this function to avoid the autoconf/automake/aclocal/autoheader
+# calls for now
+ (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
+
+ # Fix for issues when system's texinfo version >= 4.10
+ # (See https://bugzilla.redhat.com/show_bug.cgi?id=345621)
+ sed -i -e "s@egrep 'texinfo.*'@egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|4.[1-9][0-9]+|[5-9])'@" '${S}/configure'
+
+
+ oe_runconf
+}
+
+do_stage () {
+ oe_runmake install
+}