diff options
-rw-r--r-- | apps/plugins/puzzles/puzzles.make | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/puzzles/puzzles.make b/apps/plugins/puzzles/puzzles.make index 6f63f0a8ee..8780986a51 100644 --- a/apps/plugins/puzzles/puzzles.make +++ b/apps/plugins/puzzles/puzzles.make | |||
@@ -44,7 +44,7 @@ endif | |||
44 | 44 | ||
45 | PUZZLESOPTIMIZE := -O2 | 45 | PUZZLESOPTIMIZE := -O2 |
46 | ifeq ($(MODELNAME), sansac200v2) | 46 | ifeq ($(MODELNAME), sansac200v2) |
47 | PUZZLESOPTIMIZE := -Os | 47 | PUZZLESOPTIMIZE := -Os # tiny plugin buffer |
48 | endif | 48 | endif |
49 | 49 | ||
50 | # we suppress all warnings | 50 | # we suppress all warnings |
@@ -72,11 +72,11 @@ $(PUZZLES_OBJDIR)/puzzles.ovl: $(PUZZLES_OBJ) $(PUZZLES_OUTLDS) $(TLSFLIB) | |||
72 | $(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@) | 72 | $(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@) |
73 | else | 73 | else |
74 | $(PUZZLES_OBJDIR)/sgt-%.rock: $(PUZZLES_OBJDIR)/%.o $(PUZZLES_SHARED_OBJ) $(TLSFLIB) | 74 | $(PUZZLES_OBJDIR)/sgt-%.rock: $(PUZZLES_OBJDIR)/%.o $(PUZZLES_SHARED_OBJ) $(TLSFLIB) |
75 | $(call PRINTS,LD $(@F))$(CC) $(PLUGINFLAGS) -o $(BUILDDIR)/$*.elf \ | 75 | $(call PRINTS,LD $(@F))$(CC) $(PLUGINFLAGS) -o $(PUZZLES_OBJDIR)/$*.elf \ |
76 | $(filter %.o, $^) \ | 76 | $(filter %.o, $^) \ |
77 | $(filter %.a, $+) \ | 77 | $(filter %.a, $+) \ |
78 | -lgcc $(PLUGINLDFLAGS) | 78 | -lgcc $(filter-out -Wl%.map, $(PLUGINLDFLAGS)) -Wl,-Map,$(PUZZLES_OBJDIR)/$*.map |
79 | $(SILENT)$(call objcopy,$(BUILDDIR)/$*.elf,$@) | 79 | $(SILENT)$(call objcopy,$(PUZZLES_OBJDIR)/$*.elf,$@) |
80 | endif | 80 | endif |
81 | 81 | ||
82 | # special pattern rule for compiling puzzles with extra flags | 82 | # special pattern rule for compiling puzzles with extra flags |