From 204b66d1503057666af7d70922d7919804956900 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 31 Dec 2015 12:08:23 -0500 Subject: [PATCH] build: reused declared LDFLAGS Change-Id: Ia421fc3e796a889f3083b00ddcb058ccefb35291 Signed-off-by: Anas Nashif --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0bedaa3f863..a8b2f66df45 100644 --- a/Makefile +++ b/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