From: Khem Raj Date: Sat, 5 Aug 2023 15:26:20 +0000 (-0700) Subject: systemd-boot: Ensure EFI_LD is also passed to compiler driver X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d497362d52bd934101e7d7a49eeee0fffb0f4f46;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git systemd-boot: Ensure EFI_LD is also passed to compiler driver Where compiler driver is used for linking ensure bfd linker is used as well so its consistent when called directly or via compiler Signed-off-by: Khem Raj Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/systemd/systemd-boot_254.bb b/meta/recipes-core/systemd/systemd-boot_254.bb index e887e636e86..5d69cf83abc 100644 --- a/meta/recipes-core/systemd/systemd-boot_254.bb +++ b/meta/recipes-core/systemd/systemd-boot_254.bb @@ -11,6 +11,7 @@ inherit deploy LDFLAGS:prepend = "${@ " ".join(d.getVar('LD').split()[1:])} " EFI_LD = "bfd" +LDFLAGS:append = " -fuse-ld=${EFI_LD}" do_write_config[vardeps] += "CC OBJCOPY EFI_LD" do_write_config:append() {