build: reused declared LDFLAGS

Change-Id: Ia421fc3e796a889f3083b00ddcb058ccefb35291
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-12-31 12:08:23 -05:00
commit 204b66d150

View file

@ -684,10 +684,7 @@ KBUILD_CFLAGS += $(KCFLAGS)
# Use --build-id when available.
LDFLAGS_zephyr += $(call ld-option,-nostartfiles)
LDFLAGS_zephyr += $(call ld-option,-nodefaultlibs)
LDFLAGS_zephyr += $(call ld-option,-nostdlib)
LDFLAGS_zephyr += $(call ld-option,-static)
LDFLAGS_zephyr += $(LDFLAGS)
LDFLAGS_zephyr += $(call ld-option,-X)
LDFLAGS_zephyr += $(call ld-option,-N)
LDFLAGS_zephyr += $(call ld-option,--gc-sections)
@ -695,7 +692,6 @@ LDFLAGS_zephyr += $(call ld-option,--build-id=none)
LD_TOOLCHAIN ?= -D__GCC_LINKER_CMD__
ifdef CONFIG_HAVE_CUSTOM_LINKER_SCRIPT
KBUILD_LDS := $(subst $(DQUOTE),,$(CONFIG_CUSTOM_LINKER_SCRIPT))
else