summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb
diff options
context:
space:
mode:
authorJim Wilson <jim.wilson.gcc@gmail.com>2021-11-15 17:44:13 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-21 11:05:01 +0000
commite9d2a95237a440008172bc3103bcb23c1264ff95 (patch)
tree3b1ea5256bc458fd14a9c847f838f5a291c456a1 /meta/recipes-devtools/gdb
parentea178f4a55779bdb55e90f8d3ec3b7de410ab494 (diff)
downloadpoky-e9d2a95237a440008172bc3103bcb23c1264ff95.tar.gz
gdb-common: Add --with-liblzma-prefix in xz PACKAGECONFIG.
This fixes an arch linux gdb configure error with liblzma installed. Without the --with-liblzma-prefix option, when configuring the target gdb, gdb configure may find the native liblzma (on a non-multiarch system) and try to use it, which gives a configure error. We already use --with-libexpat-prefix for expat, we just need to do the same for liblzma. This was reported here: https://github.com/sifive/meta-sifive/issues/34 https://github.com/sifive/freedom-u-sdk/issues/148 (From OE-Core rev: 56623848f45cf475f909beb75209323a89837169) Signed-off-by: Jim Wilson <jim.wilson.gcc@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb')
-rw-r--r--meta/recipes-devtools/gdb/gdb-common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index f3ab3544da..925b0c2f80 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -37,7 +37,7 @@ PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python
37PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" 37PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
38# ncurses is already a hard DEPENDS, but would be added here if it weren't 38# ncurses is already a hard DEPENDS, but would be added here if it weren't
39PACKAGECONFIG[tui] = "--enable-tui,--disable-tui" 39PACKAGECONFIG[tui] = "--enable-tui,--disable-tui"
40PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" 40PACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz"
41PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" 41PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils"
42 42
43GDBPROPREFIX = "--program-prefix=''" 43GDBPROPREFIX = "--program-prefix=''"