mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Submit FS#12258. Do not use '-ffunction-sections' and '-fdata-sections' when compiling. Fixes compiler warnings for mingw and cygwin simulatior builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30468 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
28c4f2a84e
commit
6a989b8d4d
3 changed files with 20 additions and 3 deletions
|
@ -87,10 +87,17 @@ $(BUILDDIR)/credits.raw credits.raw: $(DOCSDIR)/CREDITS
|
|||
# special dependencies
|
||||
$(BUILDDIR)/apps/plugins/wav2wv.rock: $(BUILDDIR)/apps/codecs/libwavpack.a $(PLUGINLIB)
|
||||
|
||||
# Do not use '-ffunction-sections' and '-fdata-sections' when compiling sdl-sim
|
||||
ifeq ($(findstring sdl-sim, $(APP_TYPE)), sdl-sim)
|
||||
PLUGINLIBFLAGS = $(PLUGINFLAGS)
|
||||
else
|
||||
PLUGINLIBFLAGS = $(PLUGINFLAGS) -ffunction-sections -fdata-sections
|
||||
endif
|
||||
|
||||
# special pattern rule for compiling plugin lib (with function and data sections)
|
||||
$(BUILDDIR)/apps/plugins/lib/%.o: $(ROOTDIR)/apps/plugins/lib/%.c
|
||||
$(SILENT)mkdir -p $(dir $@)
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -ffunction-sections -fdata-sections -c $< -o $@
|
||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINLIBFLAGS) -c $< -o $@
|
||||
|
||||
# special pattern rule for compiling plugins with extra flags
|
||||
$(BUILDDIR)/apps/plugins/%.o: $(ROOTDIR)/apps/plugins/%.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue