kbuild: replace $(LDFLAGS) $(ldflags-y) with $(ld_flags)
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 12 Jul 2018 08:01:34 +0000 (17:01 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 18 Jul 2018 23:40:27 +0000 (08:40 +0900)
$(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>
scripts/Makefile.lib

index 1bb594fcfe12ca0ee9604df66e56daed74d288e3..19155748063b5871a454b746d1e820fc6b8b47b3 100644 (file)
@@ -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
 # ---------------------------------------------------------------------------