aboutsummaryrefslogtreecommitdiff
path: root/recipes/gdb/gdb-cross.inc
blob: 5a9490a515f374d0d444668671b6bbe21785b843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require gdb-common.inc

DEPENDS = "ncurses-native zlib-native expat-native flex-native bison-native"
# We must have this around in order to link gdb
DEPENDS += "virtual/${TARGET_PREFIX}gcc"

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
        # 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'

	autotools_base_do_configure
}

inherit cross