From c3cabf4e336c104542bb248730094747b13977b1 Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Sat, 14 Jun 2014 17:41:13 +0200 Subject: bare-arm, stmhal, teensy: Duplicate -nostdlib to CFLAGS As we are building with -nostdlib gcc features like the stack protector will fail linking, because the failure handlers are in gcc's internal libs. Such features are implicitly disabled during compilation when -nostdlib is used in CFLAGS too. Signed-off-by: Sven Wegener --- teensy/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'teensy') diff --git a/teensy/Makefile b/teensy/Makefile index 00f351472..8244d52d3 100644 --- a/teensy/Makefile +++ b/teensy/Makefile @@ -23,7 +23,7 @@ INC += -I$(PY_SRC) INC += -I$(BUILD) INC += -I$(CORE_PATH) -CFLAGS = $(INC) -Wall -ansi -std=gnu99 $(CFLAGS_CORTEX_M4) +CFLAGS = $(INC) -Wall -ansi -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) LDFLAGS = -nostdlib -T mk20dx256.ld LIBS = -L $(COMPILER_PATH)/../lib/gcc/arm-none-eabi/4.7.2/thumb2 -lgcc -- cgit v1.2.3