]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd-boot: Ensure EFI_LD is also passed to compiler driver
authorKhem Raj <raj.khem@gmail.com>
Sat, 5 Aug 2023 15:26:20 +0000 (08:26 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Aug 2023 20:42:51 +0000 (21:42 +0100)
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 <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-boot_254.bb

index e887e636e86b50ec2766b3611d54440fc0f154cd..5d69cf83abca86a15ed39c62b571dbcbdd0eda41 100644 (file)
@@ -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() {