From: Martin Jansa Date: Thu, 9 Jun 2022 08:22:32 +0000 (+0200) Subject: ltp: use bfd even when gold is used with ld-is-gold X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3892 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=674fd0c423f3a8911d73b4319ab23bd9b3f1bbac;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Martin Jansa Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/ltp/ltp_20220527.bb b/meta/recipes-extended/ltp/ltp_20220527.bb index b136c838605..b3ef8f59105 100644 --- a/meta/recipes-extended/ltp/ltp_20220527.bb +++ b/meta/recipes-extended/ltp/ltp_20220527.bb @@ -33,6 +33,12 @@ S = "${WORKDIR}/git" inherit autotools-brokensep pkgconfig +# 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 +LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd', '', d)}" + TARGET_CC_ARCH += "${LDFLAGS}" export prefix = "/opt/${PN}"