diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-01-28 01:46:35 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-30 11:37:04 +0000 |
commit | 07c4bc109d515a0b4448d917d0e36464e2f07f19 (patch) | |
tree | 02814a27fdd070356456e51a2b3448f6f706ac6d /meta/recipes-devtools/gdb/gdb-common.inc | |
parent | 5869e350386f735f2d81d7ae717b62c6fb624522 (diff) | |
download | poky-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/recipes-devtools/gdb/gdb-common.inc')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb-common.inc | 8 |
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" | |||
2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" | 2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" |
3 | LICENSE = "GPLv3+" | 3 | LICENSE = "GPLv3+" |
4 | SECTION = "devel" | 4 | SECTION = "devel" |
5 | DEPENDS = "expat zlib ncurses readline ${LTTNGUST}" | 5 | DEPENDS = "expat zlib ncurses ${LTTNGUST}" |
6 | 6 | ||
7 | LTTNGUST = "lttng-ust" | 7 | LTTNGUST = "lttng-ust" |
8 | LTTNGUST_aarch64 = "" | 8 | LTTNGUST_aarch64 = "" |
@@ -40,13 +40,17 @@ EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" | |||
40 | EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" | 40 | EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" |
41 | 41 | ||
42 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \ | 42 | EXTRA_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 | ||
50 | PACKAGECONFIG ??= "readline" | ||
51 | # Use --without-system-readline to compile with readline 5. | ||
52 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" | ||
53 | |||
50 | GDBPROPREFIX = "--program-prefix=''" | 54 | GDBPROPREFIX = "--program-prefix=''" |
51 | 55 | ||
52 | do_configure () { | 56 | do_configure () { |