From 4f7226ac4aac9b891ca43b43d93096ead757e3c4 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 17 Jun 2021 09:27:07 +0900 Subject: [PATCH] arch/avr: Remove -nostartfiles -nodefaultlibs from LDFLAGS These options are not ld options. The recent versions of ld complain on them. https://sourceware.org/pipermail/binutils/2021-June/116826.html --- arch/avr/src/avr/Toolchain.defs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/avr/src/avr/Toolchain.defs b/arch/avr/src/avr/Toolchain.defs index 62b1167d80..7a2dadd531 100644 --- a/arch/avr/src/avr/Toolchain.defs +++ b/arch/avr/src/avr/Toolchain.defs @@ -94,26 +94,22 @@ endif ifeq ($(CONFIG_AVR_TOOLCHAIN),BUILDROOT) CROSSDEV ?= avr-nuttx-elf- - LDFLAGS += -nostartfiles -nodefaultlibs endif # AVR CrossPack under macOS ifeq ($(CONFIG_AVR_TOOLCHAIN),CROSSPACK) CROSSDEV ?= avr- - LDFLAGS += -nostartfiles -nodefaultlibs endif # GCC toolchain under Linux ifeq ($(CONFIG_AVR_TOOLCHAIN),LINUXGCC) CROSSDEV ?= avr- - LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_AVR_TOOLCHAIN),WINAVR) CROSSDEV ?= avr- - LDFLAGS += -nostartfiles -nodefaultlibs endif # Default toolchain