WOLFBOOT_USE_STDLIBC gated behind USE_GCC

pull/510/head
Daniele Lacamera 2024-10-30 06:44:47 +01:00
parent 4743ec06c1
commit dbf32e615e
1 changed files with 4 additions and 3 deletions

View File

@ -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