From 453b08fe5ae23de8f96643c9f64f610b3246820d Mon Sep 17 00:00:00 2001 From: Hugues Larrive Date: Sat, 1 Jul 2023 12:29:19 +0200 Subject: [PATCH] cpu/msp430: fix for ti's msp430-gcc-opensource package ld version --- makefiles/arch/msp430.inc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/arch/msp430.inc.mk b/makefiles/arch/msp430.inc.mk index 5325a3821e..111bcddabb 100644 --- a/makefiles/arch/msp430.inc.mk +++ b/makefiles/arch/msp430.inc.mk @@ -13,7 +13,7 @@ CFLAGS_OPT ?= -Os CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT) ASFLAGS += $(CFLAGS_CPU) --defsym $(CPU_MODEL)=1 $(CFLAGS_DBG) -BINUTILS_VERSION := $(shell $(PREFIX)ld --version | grep -Eo '[0-9]\.[0-9]+') +BINUTILS_VERSION := $(shell $(PREFIX)ld --version | grep -Eo '[0-9]\.[0-9]+$$') NEEDS_NEW_LINKER_SCRIPT := $(call version_is_greater_or_equal,$(BINUTILS_VERSION),2.40) LINKFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) $(CFLAGS_OPT)