summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-01-28 01:46:35 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-30 11:37:04 +0000
commit07c4bc109d515a0b4448d917d0e36464e2f07f19 (patch)
tree02814a27fdd070356456e51a2b3448f6f706ac6d /meta
parent5869e350386f735f2d81d7ae717b62c6fb624522 (diff)
downloadpoky-07c4bc109d515a0b4448d917d0e36464e2f07f19.tar.gz
gdb-common.inc: add PACKAGECONFIG for readline
When compile with readline 5.2: completer.o: In function `gdb_display_match_list': completer.c:(.text+0x1c13): undefined reference to `_rl_completion_prefix_display_length' completer.c:(.text+0x1ce8): undefined reference to `rl_sort_completion_matches' collect2: ld returned 1 exit status The --without-system-readline will make it work. (From OE-Core rev: 94e1b917078bedf73830e54278af77f742c93581) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/gdb/gdb-common.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index 166ba8eeab..6baeb0ba9b 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -2,7 +2,7 @@ SUMMARY = "GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/" 2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE = "GPLv3+" 3LICENSE = "GPLv3+"
4SECTION = "devel" 4SECTION = "devel"
5DEPENDS = "expat zlib ncurses readline ${LTTNGUST}" 5DEPENDS = "expat zlib ncurses ${LTTNGUST}"
6 6
7LTTNGUST = "lttng-ust" 7LTTNGUST = "lttng-ust"
8LTTNGUST_aarch64 = "" 8LTTNGUST_aarch64 = ""
@@ -40,13 +40,17 @@ EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
40EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" 40EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
41 41
42EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \ 42EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \
43 --with-curses --disable-multilib --with-system-readline --disable-sim \ 43 --with-curses --disable-multilib --disable-sim \
44 --without-lzma --without-guile \ 44 --without-lzma --without-guile \
45 ${GDBPROPREFIX} ${EXPAT} \ 45 ${GDBPROPREFIX} ${EXPAT} \
46 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \ 46 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
47 --disable-rpath \ 47 --disable-rpath \
48 " 48 "
49 49
50PACKAGECONFIG ??= "readline"
51# Use --without-system-readline to compile with readline 5.
52PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
53
50GDBPROPREFIX = "--program-prefix=''" 54GDBPROPREFIX = "--program-prefix=''"
51 55
52do_configure () { 56do_configure () {