From 56623848f45cf475f909beb75209323a89837169 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 15 Nov 2021 17:44:13 -0800 Subject: 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 Signed-off-by: Jim Wilson Signed-off-by: Richard Purdie --- meta/recipes-devtools/gdb/gdb-common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-devtools') 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 PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" # ncurses is already a hard DEPENDS, but would be added here if it weren't PACKAGECONFIG[tui] = "--enable-tui,--disable-tui" -PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" +PACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz" PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" GDBPROPREFIX = "--program-prefix=''" -- cgit 1.2.3-korg