diff options
Diffstat (limited to 'apps/plugins/plugins.make')
-rw-r--r-- | apps/plugins/plugins.make | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make index 0c667aaf24..41d2307682 100644 --- a/apps/plugins/plugins.make +++ b/apps/plugins/plugins.make | |||
@@ -87,10 +87,17 @@ $(BUILDDIR)/credits.raw credits.raw: $(DOCSDIR)/CREDITS | |||
87 | # special dependencies | 87 | # special dependencies |
88 | $(BUILDDIR)/apps/plugins/wav2wv.rock: $(BUILDDIR)/apps/codecs/libwavpack.a $(PLUGINLIB) | 88 | $(BUILDDIR)/apps/plugins/wav2wv.rock: $(BUILDDIR)/apps/codecs/libwavpack.a $(PLUGINLIB) |
89 | 89 | ||
90 | # Do not use '-ffunction-sections' and '-fdata-sections' when compiling sdl-sim | ||
91 | ifeq ($(findstring sdl-sim, $(APP_TYPE)), sdl-sim) | ||
92 | PLUGINLIBFLAGS = $(PLUGINFLAGS) | ||
93 | else | ||
94 | PLUGINLIBFLAGS = $(PLUGINFLAGS) -ffunction-sections -fdata-sections | ||
95 | endif | ||
96 | |||
90 | # special pattern rule for compiling plugin lib (with function and data sections) | 97 | # special pattern rule for compiling plugin lib (with function and data sections) |
91 | $(BUILDDIR)/apps/plugins/lib/%.o: $(ROOTDIR)/apps/plugins/lib/%.c | 98 | $(BUILDDIR)/apps/plugins/lib/%.o: $(ROOTDIR)/apps/plugins/lib/%.c |
92 | $(SILENT)mkdir -p $(dir $@) | 99 | $(SILENT)mkdir -p $(dir $@) |
93 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -ffunction-sections -fdata-sections -c $< -o $@ | 100 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINLIBFLAGS) -c $< -o $@ |
94 | 101 | ||
95 | # special pattern rule for compiling plugins with extra flags | 102 | # special pattern rule for compiling plugins with extra flags |
96 | $(BUILDDIR)/apps/plugins/%.o: $(ROOTDIR)/apps/plugins/%.c | 103 | $(BUILDDIR)/apps/plugins/%.o: $(ROOTDIR)/apps/plugins/%.c |