From 4cdaa1789a82a89121c0c2b91724848755f12863 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Fri, 20 Aug 2010 13:13:36 +0800 Subject: gdb: disable installation of bfd/iberty/opcodes Those are assumed to be provided by binutils, so we disable installation here. Without doing so, a broken libbfd.la from gdb is installed to sysroot which overrides binutils version and then hurt other packages such as oprofile also fix --with-readline to --with-system-readline Signed-off-by: Kevin Tian --- meta/packages/gdb/gdb-common.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'meta/packages/gdb/gdb-common.inc') diff --git a/meta/packages/gdb/gdb-common.inc b/meta/packages/gdb/gdb-common.inc index d3bda85e1d..16b653e46e 100644 --- a/meta/packages/gdb/gdb-common.inc +++ b/meta/packages/gdb/gdb-common.inc @@ -24,7 +24,7 @@ EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" EXPAT = "--without-expat" EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \ - --with-curses --disable-multilib --with-readline --disable-sim \ + --with-curses --disable-multilib --with-system-readline --disable-sim \ ${GDBPROPREFIX} --with-libelf=${STAGING_DIR_TARGET} ${EXPAT}" GDBPROPREFIX = "--program-prefix=''" @@ -35,6 +35,14 @@ do_configure () { oe_runconf } +# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the +# right bits installed by binutils. +do_install_append() { + rm -rf ${D}${libdir} + rm -rf ${D}${includedir} + rm -rf ${D}${datadir}/locale +} + RRECOMMENDS_gdb_append_linux = " glibc-thread-db " RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " -- cgit v1.2.3-54-g00ecf