flashbench: unbreak build on microblaze
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 15 Dec 2012 23:49:44 +0000 (00:49 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 15 Dec 2012 23:49:44 +0000 (00:49 +0100)
Fixes http://autobuild.buildroot.net/results/498287519fbb588ed4ee9624ff82002a4766a5f4

The old 4.1.2 binary microblaze toolchain only provides LLONG_MAX when
used with the gnu99 dialect.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/flashbench/flashbench.mk

index ead1346f7b506391ca88465a55d2b5598c38d2cc..faf8ae69ec6d44260ba4b9540b6bc25acf53c347 100644 (file)
@@ -9,8 +9,16 @@ FLASHBENCH_SITE = git://git.linaro.org/people/arnd/flashbench.git
 FLASHBENCH_LICENSE = GPLv2
 FLASHBENCH_LICENSE_FILES = COPYING
 
+FLASHBENCH_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_microblaze),y)
+# microblaze toolchain only provides LLONG_MAX when used with gnu99 dialect
+FLASHBENCH_CFLAGS += -std=gnu99
+endif
+
 define FLASHBENCH_BUILD_CMDS
        $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
+               CFLAGS="$(FLASHBENCH_CFLAGS)" \
                LDFLAGS="$(TARGET_LDFLAGS) -lrt"
 endef