diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-08 06:23:33 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-08 06:23:33 +0000 |
commit | ae5d09b252f1038167a56488eb4058b6d8eb8427 (patch) | |
tree | 928b009bd2a58307d962e3d9106193186f33edc4 | |
parent | daaae99c1cbeca2a67065ac5ac5d4e9eb32df109 (diff) | |
download | rockbox-ae5d09b252f1038167a56488eb4058b6d8eb8427.tar.gz rockbox-ae5d09b252f1038167a56488eb4058b6d8eb8427.zip |
MIPS uses GCC 4.1.2 which was wrongly detected as supporting '-fgnu89-inline'. Now only set this parameter if GCCNUM > 401.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30471 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/doom/doom.make | 4 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.make | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/doom/doom.make b/apps/plugins/doom/doom.make index b9bc1ec06b..0ebdf384a1 100644 --- a/apps/plugins/doom/doom.make +++ b/apps/plugins/doom/doom.make | |||
@@ -20,8 +20,8 @@ OTHER_SRC += $(DOOM_SRC) | |||
20 | 20 | ||
21 | DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing | 21 | DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing |
22 | 22 | ||
23 | # Set '-fgnu89-inline' if supported (GCCVER >= 4.1.3, GCCNUM >= 401) | 23 | # Set '-fgnu89-inline' if supported (GCCVER >= 4.1.3, GCCNUM > 401) |
24 | ifeq ($(shell expr $(GCCNUM) \>= 401),1) | 24 | ifeq ($(shell expr $(GCCNUM) \> 401),1) |
25 | DOOMCFLAGS += -fgnu89-inline | 25 | DOOMCFLAGS += -fgnu89-inline |
26 | endif | 26 | endif |
27 | 27 | ||
diff --git a/apps/plugins/mpegplayer/mpegplayer.make b/apps/plugins/mpegplayer/mpegplayer.make index 1f74d6597a..af2156787e 100644 --- a/apps/plugins/mpegplayer/mpegplayer.make +++ b/apps/plugins/mpegplayer/mpegplayer.make | |||
@@ -18,8 +18,8 @@ MPEG_OBJ := $(call c2obj, $(MPEG_SRC)) | |||
18 | # add source files to OTHER_SRC to get automatic dependencies | 18 | # add source files to OTHER_SRC to get automatic dependencies |
19 | OTHER_SRC += $(MPEG_SRC) | 19 | OTHER_SRC += $(MPEG_SRC) |
20 | 20 | ||
21 | # Set '-fgnu89-inline' if supported (GCCVER >= 4.1.3, GCCNUM >= 401) | 21 | # Set '-fgnu89-inline' if supported (GCCVER >= 4.1.3, GCCNUM > 401) |
22 | ifeq ($(shell expr $(GCCNUM) \>= 401),1) | 22 | ifeq ($(shell expr $(GCCNUM) \> 401),1) |
23 | MPEGCFLAGS = $(PLUGINFLAGS) -fgnu89-inline | 23 | MPEGCFLAGS = $(PLUGINFLAGS) -fgnu89-inline |
24 | else | 24 | else |
25 | MPEGCFLAGS = $(PLUGINFLAGS) | 25 | MPEGCFLAGS = $(PLUGINFLAGS) |