[Buildroot] Fwd: [PATCH 1/1] uboot: Strip "-Wl," from LDFLAGS

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Jun 3 14:03:42 UTC 2016


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