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-29 18:14:57 +0000 |
commit | 94e1b917078bedf73830e54278af77f742c93581 (patch) | |
tree | 319d1ae3fd6c7d787d11f88953254d69d0d4c696 /meta | |
parent | 39e231cfabda8d75906c935d2a01f37df6121b84 (diff) | |
download | openembedded-core-94e1b917078bedf73830e54278af77f742c93581.tar.gz openembedded-core-94e1b917078bedf73830e54278af77f742c93581.tar.bz2 openembedded-core-94e1b917078bedf73830e54278af77f742c93581.zip |
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.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-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" HOMEPAGE = "http://www.gnu.org/software/gdb/" LICENSE = "GPLv3+" SECTION = "devel" -DEPENDS = "expat zlib ncurses readline ${LTTNGUST}" +DEPENDS = "expat zlib ncurses ${LTTNGUST}" LTTNGUST = "lttng-ust" LTTNGUST_aarch64 = "" @@ -40,13 +40,17 @@ EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \ - --with-curses --disable-multilib --with-system-readline --disable-sim \ + --with-curses --disable-multilib --disable-sim \ --without-lzma --without-guile \ ${GDBPROPREFIX} ${EXPAT} \ ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \ --disable-rpath \ " +PACKAGECONFIG ??= "readline" +# Use --without-system-readline to compile with readline 5. +PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" + GDBPROPREFIX = "--program-prefix=''" do_configure () { |