1
0
Fork 0
forked from len0rd/rockbox

Fix FS#12261. Only set '-fgnu89-inline' if GCC >= 4.1.3 is used.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30467 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2011-09-07 18:36:56 +00:00
parent c1a14863f5
commit 28c4f2a84e
2 changed files with 4 additions and 4 deletions

View file

@ -20,8 +20,8 @@ OTHER_SRC += $(DOOM_SRC)
DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing
# Set '-fgnu89-inline' if supported for the target.
ifneq ($(CPU),mips)
# Set '-fgnu89-inline' if supported (GCCVER >= 4.1.3, GCCNUM >= 401)
ifeq ($(shell expr $(GCCNUM) \>= 401),1)
DOOMCFLAGS += -fgnu89-inline
endif

View file

@ -18,8 +18,8 @@ MPEG_OBJ := $(call c2obj, $(MPEG_SRC))
# add source files to OTHER_SRC to get automatic dependencies
OTHER_SRC += $(MPEG_SRC)
# Set '-fgnu89-inline' if supported for the target.
ifneq ($(CPU),mips)
# Set '-fgnu89-inline' if supported (GCCVER >= 4.1.3, GCCNUM >= 401)
ifeq ($(shell expr $(GCCNUM) \>= 401),1)
MPEGCFLAGS = $(PLUGINFLAGS) -fgnu89-inline
else
MPEGCFLAGS = $(PLUGINFLAGS)