flashbench: force gnu99 dialect on sh2a
authorgilles.talis@gmail.com <gilles.talis@gmail.com>
Tue, 26 Feb 2013 15:22:38 +0000 (15:22 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 27 Feb 2013 07:45:44 +0000 (08:45 +0100)
Fixes:
http://autobuild.buildroot.org/results/33880036054c39cb04dad71bc8c0a9eece16fac6

CodeSourcery toolchains for sh2a only provide LLONG_MAX when
used with the gnu99 dialect.

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/flashbench/flashbench.mk

index faf8ae69ec6d44260ba4b9540b6bc25acf53c347..45d054004db8fc376393ff016f38a5c20ed85e12 100644 (file)
@@ -11,8 +11,8 @@ FLASHBENCH_LICENSE_FILES = COPYING
 
 FLASHBENCH_CFLAGS = $(TARGET_CFLAGS)
 
-ifeq ($(BR2_microblaze),y)
-# microblaze toolchain only provides LLONG_MAX when used with gnu99 dialect
+ifeq ($(BR2_microblaze)$(BR2_sh2a),y)
+# microblaze and sh2a toolchains only provide LLONG_MAX when used with gnu99 dialect
 FLASHBENCH_CFLAGS += -std=gnu99
 endif