From 28c4f2a84e8b87392dcfff8200fbbc10d5c24adf Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Wed, 7 Sep 2011 18:36:56 +0000 Subject: 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 --- apps/plugins/doom/doom.make | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/doom') diff --git a/apps/plugins/doom/doom.make b/apps/plugins/doom/doom.make index c71ede6..b9bc1ec 100644 --- a/apps/plugins/doom/doom.make +++ b/apps/plugins/doom/doom.make @@ -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 -- cgit v1.1