diff --git a/arch/8051/src/Makefile b/arch/8051/src/Makefile index fe1995fd04..83c796119f 100644 --- a/arch/8051/src/Makefile +++ b/arch/8051/src/Makefile @@ -72,7 +72,7 @@ BOARDDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src/board IRAM_SIZE = 0x100 DEF_STACK_BASE = 0x24 -LDFLAGS = --model-large --nostdlib \ +LDFLAGS += --model-large --nostdlib \ --data-loc $(DEF_STACK_BASE) --iram-size $(IRAM_SIZE) \ --code-loc 0x2100 --code-size 0x5f40 \ --xram-loc $(IRAM_SIZE) --xram-size 0x1f00 diff --git a/arch/arm/src/Makefile b/arch/arm/src/Makefile index 7bba7315fc..f356f4d02a 100644 --- a/arch/arm/src/Makefile +++ b/arch/arm/src/Makefile @@ -70,7 +70,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) -LDFLAGS = $(ARCHSCRIPT) +LDFLAGS += $(ARCHSCRIPT) EXTRA_LIBS ?= EXTRA_LIBPATHS ?= diff --git a/arch/avr/src/Makefile b/arch/avr/src/Makefile index b72a6c8a8d..bbfc4dd4f9 100644 --- a/arch/avr/src/Makefile +++ b/arch/avr/src/Makefile @@ -74,7 +74,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) -LDFLAGS = $(ARCHSCRIPT) +LDFLAGS += $(ARCHSCRIPT) EXTRA_LIBS ?= LINKLIBS = diff --git a/arch/hc/src/Makefile b/arch/hc/src/Makefile index 36fc9bf723..ff19ce6fe6 100644 --- a/arch/hc/src/Makefile +++ b/arch/hc/src/Makefile @@ -67,7 +67,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) -LDFLAGS = $(ARCHSCRIPT) +LDFLAGS += $(ARCHSCRIPT) EXTRA_LIBS ?= LINKLIBS = diff --git a/arch/mips/src/Makefile b/arch/mips/src/Makefile index 8d7b940c6f..8769f35eca 100644 --- a/arch/mips/src/Makefile +++ b/arch/mips/src/Makefile @@ -64,7 +64,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) -LDFLAGS = $(ARCHSCRIPT) +LDFLAGS += $(ARCHSCRIPT) EXTRA_LIBS ?= LINKLIBS = diff --git a/arch/sh/src/Makefile b/arch/sh/src/Makefile index 7ec8c9f80f..3008983966 100644 --- a/arch/sh/src/Makefile +++ b/arch/sh/src/Makefile @@ -50,7 +50,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) -LDFLAGS = $(ARCHSCRIPT) +LDFLAGS += $(ARCHSCRIPT) EXTRA_LIBS ?= LINKLIBS = diff --git a/arch/x86/src/Makefile b/arch/x86/src/Makefile index 9c35e98092..7225f31cf0 100644 --- a/arch/x86/src/Makefile +++ b/arch/x86/src/Makefile @@ -64,7 +64,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) -LDFLAGS = $(ARCHSCRIPT) +LDFLAGS += $(ARCHSCRIPT) EXTRA_LIBS ?= LINKLIBS = diff --git a/arch/z16/src/Makefile b/arch/z16/src/Makefile index 40dc73c5e1..088aeebd2e 100644 --- a/arch/z16/src/Makefile +++ b/arch/z16/src/Makefile @@ -49,7 +49,7 @@ INCLUDES = $(ARCHSTDINCLUDES) $(USRINCLUDES) CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(INCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) CPPFLAGS += -I$(ARCHSRCDIR) ifeq ($(COMPILER),zneocc.exe) -LDFLAGS = @"${shell cygpath -w $(ARCHSRCDIR)/nuttx.linkcmd}" +LDFLAGS += @"${shell cygpath -w $(ARCHSRCDIR)/nuttx.linkcmd}" endif HEAD_ASRC = $(HEAD_SSRC:.S=$(ASMEXT)) diff --git a/arch/z80/src/Makefile.zdsii b/arch/z80/src/Makefile.zdsii index a105597a92..e749bddd32 100644 --- a/arch/z80/src/Makefile.zdsii +++ b/arch/z80/src/Makefile.zdsii @@ -41,7 +41,7 @@ USRINCLUDES = -usrinc:'.;$(WTOPDIR)\sched;$(WARCHSRCDIR);$(WARCHSRCDIR)\common' INCLUDES = $(ARCHSTDINCLUDES) $(USRINCLUDES) CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(INCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) CPPFLAGS += -I$(ARCHSRCDIR) -I$(ZDSSTDINCDIR) -I$(ZDSZILOGINCDIR) -LDFLAGS = @"${shell cygpath -w $(ARCHSRCDIR)/nuttx.linkcmd}" +LDFLAGS += @"${shell cygpath -w $(ARCHSRCDIR)/nuttx.linkcmd}" ############################################################################ # Files and directories