build: reused declared LDFLAGS
Change-Id: Ia421fc3e796a889f3083b00ddcb058ccefb35291 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
ace0e227c7
commit
204b66d150
1 changed files with 1 additions and 5 deletions
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue