summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-07-12 10:01:34 +0200
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-07-19 01:40:27 +0200
commitf60b992e30ffef82fd6cd317c6fba3ccaacbe921 (patch)
tree1f5ff5a98e0f874c0a9018a2d8045e206897254f /scripts/Makefile.lib
parentkbuild: remove redundant LDFLAGS clearing in arch/*/Makefile (diff)
downloadlinux-f60b992e30ffef82fd6cd317c6fba3ccaacbe921.tar.xz
linux-f60b992e30ffef82fd6cd317c6fba3ccaacbe921.zip
kbuild: replace $(LDFLAGS) $(ldflags-y) with $(ld_flags)
$(LDFLAGS) $(ldflags-y) is equivalent to $(ld_flags). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r--scripts/Makefile.lib3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 1bb594fcfe12..19155748063b 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -225,8 +225,7 @@ $(obj)/%: $(src)/%_shipped
# ---------------------------------------------------------------------------
quiet_cmd_ld = LD $@
-cmd_ld = $(LD) $(LDFLAGS) $(ldflags-y) $(LDFLAGS_$(@F)) \
- $(filter-out FORCE,$^) -o $@
+cmd_ld = $(LD) $(ld_flags) $(LDFLAGS_$(@F)) $(filter-out FORCE,$^) -o $@
# Objcopy
# ---------------------------------------------------------------------------