[Buildroot] Fwd: [PATCH 1/1] uboot: Strip "-Wl," from LDFLAGS
Jeroen Roovers
jer at airfi.aero
Fri Jun 3 14:10:08 UTC 2016
Hm, OK. I did just discover that I'm on an AllWinner fork of uboot, so
maybe it doesn't apply to mainline uboot at all. If you cannot
reproduce the issue, then that may be the cause, in which case I guess
you would want to drop that patch.
Regards,
jer
On 3 June 2016 at 16:03, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello,
>
> On Fri, 3 Jun 2016 16:00:42 +0200, Jeroen Roovers wrote:
>
>> The patch *doesn't* pass LDFLAGS down; GNU make simply picks up the
>> exported LDFLAGS from buildroot and integrates it with its own flags.
>> I only found out because when I set BR2_TARGET_LDFLAGS using the usual
>> GCC flags and did a complete rebuild, I found that only uboot failed
>> to build.
>
> Buildroot does not export LDFLAGS, and only passes it down to packages
> if it's explicitly done in the package .mk file.
>
> Try the defconfig I posted, it built just fine, even though it has
> -Wl,--as-needed in BR2_TARGET_LDFLAGS.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
More information about the buildroot
mailing list