diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-06-16 01:31:08 -0700 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-07-07 04:30:26 -1000 |
commit | 2bb44b30a08322b0d40af2e09b1ad11fb52311e6 (patch) | |
tree | 53630a1c76a624f1e9ec417904316a062b01c769 | |
parent | e1e65f69c8ea2597f89eb498f25693069d90b646 (diff) | |
download | poky-2bb44b30a08322b0d40af2e09b1ad11fb52311e6.tar.gz |
libxml2: Do not use lld linker when building with tests on rv64
lld ends up with errors on some tests
| riscv64-yoe-linux-ld.lld: error: section size decrease is too large
Therefore do not use lld when building ptests
(From OE-Core rev: 23bcd0dbf3aeaff6b6914d347954bec22a133e23)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 154e81bb6b05b23c0c673b431cb7cee868421335)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-core/libxml/libxml2_2.10.4.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2_2.10.4.bb b/meta/recipes-core/libxml/libxml2_2.10.4.bb index 288631504c..4f3b17093e 100644 --- a/meta/recipes-core/libxml/libxml2_2.10.4.bb +++ b/meta/recipes-core/libxml/libxml2_2.10.4.bb | |||
@@ -40,6 +40,8 @@ inherit autotools pkgconfig binconfig-disabled ptest | |||
40 | 40 | ||
41 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3targetconfig', '', d)} | 41 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3targetconfig', '', d)} |
42 | 42 | ||
43 | LDFLAGS:append:riscv64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld ptest', ' -fuse-ld=bfd', '', d)}" | ||
44 | |||
43 | RDEPENDS:${PN}-ptest += "bash make locale-base-en-us ${@bb.utils.contains('PACKAGECONFIG', 'python', 'libgcc python3-core python3-logging python3-shell python3-stringold python3-threading python3-unittest ${PN}-python', '', d)}" | 45 | RDEPENDS:${PN}-ptest += "bash make locale-base-en-us ${@bb.utils.contains('PACKAGECONFIG', 'python', 'libgcc python3-core python3-logging python3-shell python3-stringold python3-threading python3-unittest ${PN}-python', '', d)}" |
44 | 46 | ||
45 | RDEPENDS:${PN}-python += "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3-core', '', d)}" | 47 | RDEPENDS:${PN}-python += "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3-core', '', d)}" |