mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
* it was already added for target and cross-canadian gdb in: commit 4643d1eb222151384f77d13a936537aae5ca3fe6 Author: Khem Raj <raj.khem@gmail.com> Date: Fri Nov 5 17:37:33 2021 -0700 gdb: Add dependency on libgmp gdb 11 has added this library as must have * but gdb-cross.inc overwrites DEPENDS from gdb-common.inc and needs the dependency as well as shown in log.do_compile: checking for libgmp... no configure: error: GMP is missing or unusable make[1]: *** [Makefile:9418: configure-gdb] Error 1 and in gdb-cross-i686/11.1-r0/build-i686-oe-linux/gdb/config.log: configure:10402: checking for libgmp configure:10422: gcc -o conftest -isystem/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/usr/include -I/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/usr/include -L/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/usr/lib -L/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/lib -Wl,-rpath,/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/OE/tmp-glibc/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 conftest.c -lncursesw -lm -ldl -lgmp >&5 conftest.c:52:10: fatal error: gmp.h: No such file or directory 52 | #include <gmp.h> | ^~~~~~~ * this fails only when the host OS doesn't have GMP installed otherwise it will use libgmp from host and ignore --with-libgmp-prefix=/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/OE/tmp-glibc/work/x86_64-linux/gdb-cross-i686/11.1-r0/recipe-sysroot-native/usr (From OE-Core rev: 09a7d9d8d83529d82f847e52feac7719efb02a99) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
32 lines
961 B
PHP
32 lines
961 B
PHP
require gdb-common.inc
|
|
|
|
DEPENDS = "expat-native gmp-native ncurses-native flex-native bison-native"
|
|
|
|
inherit python3native pkgconfig
|
|
|
|
# Overrides PACKAGECONFIG variables in gdb-common.inc
|
|
PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
|
|
PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native"
|
|
PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native"
|
|
PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native"
|
|
|
|
do_compile:prepend() {
|
|
export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}"
|
|
export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}"
|
|
}
|
|
|
|
#EXTRA_OEMAKE += "LDFLAGS='${BUILD_LDFLAGS}'"
|
|
|
|
GDBPROPREFIX = ""
|
|
|
|
PN = "gdb-cross-${TARGET_ARCH}"
|
|
BPN = "gdb"
|
|
|
|
# Ignore how TARGET_ARCH is computed.
|
|
TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}"
|
|
|
|
inherit cross
|
|
inherit gettext
|
|
|
|
datadir .= "/gdb-${TARGET_SYS}${TARGET_VENDOR}-${TARGET_OS}"
|