Skip to contentSkip to conversation

systemd-boot: Ensure EFI_LD is also passed to compiler driver

PATCH New Khem Raj 1 participant 1 message Aug 5, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 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

---
 meta/recipes-core/systemd/systemd-boot_254.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/systemd/systemd-boot_254.bb +1 -0
index e887e636e86..5d69cf83abc 100644
@@ -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() {
Signature · 1 line
2.41.0