diff options
author | Jim Wilson <jim.wilson.gcc@gmail.com> | 2021-11-15 17:44:13 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-21 11:05:01 +0000 |
commit | e9d2a95237a440008172bc3103bcb23c1264ff95 (patch) | |
tree | 3b1ea5256bc458fd14a9c847f838f5a291c456a1 /meta/recipes-devtools/gdb | |
parent | ea178f4a55779bdb55e90f8d3ec3b7de410ab494 (diff) | |
download | poky-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.inc | 2 |
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 | |||
37 | PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" | 37 | PACKAGECONFIG[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 |
39 | PACKAGECONFIG[tui] = "--enable-tui,--disable-tui" | 39 | PACKAGECONFIG[tui] = "--enable-tui,--disable-tui" |
40 | PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" | 40 | PACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz" |
41 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" | 41 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" |
42 | 42 | ||
43 | GDBPROPREFIX = "--program-prefix=''" | 43 | GDBPROPREFIX = "--program-prefix=''" |