From 012aa8ac0e5f19caee8673750c1e7a0a9523c845 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 26 Aug 2015 22:47:01 +0200 Subject: [PATCH] helloworld: Suppress linker warning --- apps/helloworld/Makefile.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/helloworld/Makefile.inc b/apps/helloworld/Makefile.inc index 9c8630f..bbf495d 100644 --- a/apps/helloworld/Makefile.inc +++ b/apps/helloworld/Makefile.inc @@ -10,8 +10,13 @@ main.obj: main.c $(call mkdir,$(dir $@)) $(RPP_COMPILE_CMD) +ifneq ($(TARGET),posix) +# Supress warning about automatically allocated section +helloworld.out: RPP_LDFLAGS += --heap_size=2048 +endif + helloworld.out: main.obj $(RPP_LIB_DIR)/rpp-lib.lib - $(LD) $(RPP_CFLAGS) $< $(RPP_LDFLAGS) $(RPP_LDLIBS) -o $@ + $(LD) $(RPP_CFLAGS) $< $(RPP_LDFLAGS) $(RPP_LDLIBS) -o $@ clean:: $(call rm,helloworld.out main.obj) -- 2.39.2