mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
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 <kevin.tian@intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
75b57d573c
commit
4cdaa1789a
@@ -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 "
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ DEPENDS = "ncurses-nativesdk expat-nativesdk gettext-nativesdk"
|
||||
|
||||
inherit cross-canadian
|
||||
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
|
||||
EXPAT = "--with-expat"
|
||||
|
||||
@@ -2,4 +2,4 @@ require gdb-cross.inc
|
||||
|
||||
SRC_URI += "file://sim-install-6.6.patch;patch=1"
|
||||
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
require gdb.inc
|
||||
|
||||
PR = "r1"
|
||||
PR = "r2"
|
||||
|
||||
Reference in New Issue
Block a user