diff --git a/src/Makefile b/src/Makefile index b03695eb..42dc2090 100644 --- a/src/Makefile +++ b/src/Makefile @@ -61,11 +61,14 @@ SRC = \ stm32g0.c \ target.c \ -# Output memory usage information -LDFLAGS += -Wl,--print-memory-usage include $(PLATFORM_DIR)/Makefile.inc +ifneq ($(PC_HOSTED),1) +# Output memory usage information +LDFLAGS += -Wl,--print-memory-usage +endif + OPT_FLAGS ?= -Os CFLAGS += $(OPT_FLAGS) LDFLAGS += $(OPT_FLAGS)