summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2022-06-09 10:22:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-11 10:28:22 +0100
commit9ba9938b1bc26e5e803c11f78da81d7a90c0284c (patch)
treee756fa1b8aaf122b506db95909202bec729f7666
parent6c9a516e7617e3f82de4540515c57b33508454fc (diff)
downloadpoky-9ba9938b1bc26e5e803c11f78da81d7a90c0284c.tar.gz
ltp: use bfd even when gold is used with ld-is-gold
* version 20220527 added KVM test infrastructure which currently fails to build with gold due to SORT_NONE in linker script which isn't supported by gold: https://sourceware.org/bugzilla/show_bug.cgi?id=18097 https://github.com/linux-test-project/ltp/commit/3fce2064b54843218d085aae326c8f7ecf3a8c41#diff-39268f0855c634ca48c8993fcd2c95b12a65b79e8d9fa5ccd6b0f5a8785c0dd6R36 (From OE-Core rev: 674fd0c423f3a8911d73b4319ab23bd9b3f1bbac) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/ltp/ltp_20220527.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp_20220527.bb b/meta/recipes-extended/ltp/ltp_20220527.bb
index b136c83860..b3ef8f5910 100644
--- a/meta/recipes-extended/ltp/ltp_20220527.bb
+++ b/meta/recipes-extended/ltp/ltp_20220527.bb
@@ -33,6 +33,12 @@ S = "${WORKDIR}/git"
33 33
34inherit autotools-brokensep pkgconfig 34inherit autotools-brokensep pkgconfig
35 35
36# Version 20220527 added KVM test infrastructure which currently fails to build with gold due to
37# SORT_NONE in linker script which isn't supported by gold:
38# https://sourceware.org/bugzilla/show_bug.cgi?id=18097
39# https://github.com/linux-test-project/ltp/commit/3fce2064b54843218d085aae326c8f7ecf3a8c41#diff-39268f0855c634ca48c8993fcd2c95b12a65b79e8d9fa5ccd6b0f5a8785c0dd6R36
40LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd', '', d)}"
41
36TARGET_CC_ARCH += "${LDFLAGS}" 42TARGET_CC_ARCH += "${LDFLAGS}"
37 43
38export prefix = "/opt/${PN}" 44export prefix = "/opt/${PN}"