This breaks when LDFLAGS includes -Wl, arguments and possibly also when LD is defined manually. Possible fixes: LD=${CC}, import flag-o-matic; LDFLAGS="$(raw-ldflags)", patching...
Fixed, thanks.