guarded gcc-specific LDFLAGS in sim build

pull/510/head
Daniele Lacamera 2024-10-30 13:48:46 +01:00
parent dbf32e615e
commit 1d7744d2e1
1 changed files with 2 additions and 2 deletions

View File

@ -1029,10 +1029,10 @@ ifeq ($(TARGET),sim)
LD_END_GROUP=
BOOT_IMG=test-app/image.elf
CFLAGS+=-DARCH_SIM
CFLAGS+=-DWOLFBOOT_USE_STDLIBC
ifeq ($(USE_GCC),1)
CFLAGS+=-DWOLFBOOT_USE_STDLIBC
LDFLAGS+=-Wl,-gc-sections -Wl,-Map=wolfboot.map
endif
LDFLAGS+=-Wl,-gc-sections -Wl,-Map=wolfboot.map
ifeq ($(FORCE_32BIT),1)
CFLAGS+=-m32
LDFLAGS+=-m32