[Buildroot] Fwd: [PATCH 1/1] uboot: Strip "-Wl," from LDFLAGS
Jeroen Roovers
jer at airfi.aero
Wed Feb 10 15:03:23 UTC 2016
---------- Forwarded message ----------
From: Jeroen Roovers <jer at airfi.aero>
Date: 10 February 2016 at 12:15
Subject: [PATCH 1/1] uboot: Strip "-Wl," from LDFLAGS
To: buildroot at buildroot.org
Cc: Jeroen Roovers <jer at airfi.aero>
If we want to set proper LDFLAGS, then we need to mangle that in the
uboot build system as it calls ld(1) (in fact ld.bfd) directly,
where the "-Wl," prefix should only be used when the linker is
called indirectly through gcc(1).
Signed-off-by: Jeroen Roovers <jer at airfi.aero>
---
boot/uboot/uboot.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index d539b31..9996aca 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -83,6 +83,7 @@ endif
UBOOT_MAKE_OPTS += \
CROSS_COMPILE="$(TARGET_CROSS)" \
+ LDFLAGS="$(TARGET_LDFLAGS:-Wl,%=%)" \
ARCH=$(UBOOT_ARCH)
ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)
--
2.4.10
More information about the buildroot
mailing list