[PATCH] build: discard compiler default specs

Bertrand Jacquin bertrand at jacquin.bzh
Sat Apr 25 16:15:01 CEST 2020


This allow to overwrite any potential default specs defined in local gcc
build like stack-protector which is now enforced by more and more Linux
distributions while it should not apply in chopstx use case
---
 rules.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/rules.mk b/rules.mk
index 3915268418d4..c0f99a6c92e2 100644
--- a/rules.mk
+++ b/rules.mk
@@ -57,6 +57,9 @@ LDFLAGS =
 
 ###
 ifeq ($(EMULATION),)
+# Discard compiler default specs
+MCFLAGS   += -specs=nosys.specs
+
 MCFLAGS   += -mcpu=$(MCU)
 LDFLAGS   += $(MCFLAGS) -nostartfiles -T$(LDSCRIPT) \
             -Wl,-Map=$(BUILDDIR)/$(PROJECT).map,--cref,--no-warn-mismatch,--gc-sections



More information about the Gnuk-users mailing list