summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-03 18:46:44 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-03 18:46:44 +0000
commit3b83e599233483edd86401f6698d822b0d4dc03c (patch)
treed80fe9612dc7d9a442c805f61889abddcb28246f /apps/plugins
parent41a0bfc5ede0de1196d3adb552b5ef659daebd4c (diff)
downloadrockbox-3b83e599233483edd86401f6698d822b0d4dc03c.zip
rockbox-3b83e599233483edd86401f6698d822b0d4dc03c.tar.gz
rockbox-3b83e599233483edd86401f6698d822b0d4dc03c.tar.bz2
rockbox-3b83e599233483edd86401f6698d822b0d4dc03c.tar.xz
Do not set '-fgnu89-inline' for MIPS targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30421 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/doom/doom.make7
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.make7
2 files changed, 12 insertions, 2 deletions
diff --git a/apps/plugins/doom/doom.make b/apps/plugins/doom/doom.make
index a405a5f..c71ede6 100644
--- a/apps/plugins/doom/doom.make
+++ b/apps/plugins/doom/doom.make
@@ -18,7 +18,12 @@ DOOM_OBJ := $(call c2obj, $(DOOM_SRC))
# add source files to OTHER_SRC to get automatic dependencies
OTHER_SRC += $(DOOM_SRC)
-DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing -fgnu89-inline
+DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing
+
+# Set '-fgnu89-inline' if supported for the target.
+ifneq ($(CPU),mips)
+ DOOMCFLAGS += -fgnu89-inline
+endif
ifndef APP_TYPE
ifeq ($(TARGET), IRIVER_H100)
diff --git a/apps/plugins/mpegplayer/mpegplayer.make b/apps/plugins/mpegplayer/mpegplayer.make
index 2a39e7d..00a11f3 100644
--- a/apps/plugins/mpegplayer/mpegplayer.make
+++ b/apps/plugins/mpegplayer/mpegplayer.make
@@ -18,7 +18,12 @@ MPEG_OBJ := $(call c2obj, $(MPEG_SRC))
# add source files to OTHER_SRC to get automatic dependencies
OTHER_SRC += $(MPEG_SRC)
-MPEGCFLAGS = $(PLUGINFLAGS) -fgnu89-inline
+# Set '-fgnu89-inline' if supported for the target.
+ifneq ($(CPU),mips)
+ MPEGCFLAGS = $(PLUGINFLAGS) -fgnu89-inline
+else
+ MPEGCFLAGS = $(PLUGINFLAGS)
+endif
$(MPEGBUILDDIR)/mpegplayer.rock: $(MPEG_OBJ) $(CODECDIR)/libmad-mpeg.a