Skip to content

Commit e78755d

Browse files
committed
WOLFBOOT_USE_STDLIBC gated behind USE_GCC
1 parent 47748c3 commit e78755d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arch.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,12 +1034,13 @@ ifeq ($(TARGET),sim)
10341034
LD_END_GROUP=
10351035
BOOT_IMG=test-app/image.elf
10361036
CFLAGS+=-DARCH_SIM
1037-
CFLAGS+=-DWOLFBOOT_USE_STDLIBC
1038-
LDFLAGS +=-Wl,-gc-sections -Wl,-Map=wolfboot.map
1037+
ifeq ($(USE_GCC),1)
1038+
CFLAGS+=-DWOLFBOOT_USE_STDLIBC
1039+
endif
1040+
LDFLAGS+=-Wl,-gc-sections -Wl,-Map=wolfboot.map
10391041
ifeq ($(FORCE_32BIT),1)
10401042
CFLAGS+=-m32
10411043
LDFLAGS+=-m32
1042-
10431044
endif
10441045
ifeq ($(SPMATH),1)
10451046
MATH_OBJS += ./lib/wolfssl/wolfcrypt/src/sp_c32.o

0 commit comments

Comments
 (0)