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>
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