From dbf32e615e9ef1a9a1ec0742fc5ef574f004cceb Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Wed, 30 Oct 2024 06:44:47 +0100 Subject: [PATCH] WOLFBOOT_USE_STDLIBC gated behind USE_GCC --- arch.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch.mk b/arch.mk index 66f32984..d57ab169 100644 --- a/arch.mk +++ b/arch.mk @@ -1029,12 +1029,13 @@ ifeq ($(TARGET),sim) LD_END_GROUP= BOOT_IMG=test-app/image.elf CFLAGS+=-DARCH_SIM - CFLAGS+=-DWOLFBOOT_USE_STDLIBC - LDFLAGS +=-Wl,-gc-sections -Wl,-Map=wolfboot.map + ifeq ($(USE_GCC),1) + CFLAGS+=-DWOLFBOOT_USE_STDLIBC + endif + LDFLAGS+=-Wl,-gc-sections -Wl,-Map=wolfboot.map ifeq ($(FORCE_32BIT),1) CFLAGS+=-m32 LDFLAGS+=-m32 - endif ifeq ($(SPMATH),1) MATH_OBJS += ./lib/wolfssl/wolfcrypt/src/sp_c32.o