From d30e5e4fa462815fddefe40fb8f4cc611c71fd25 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Sun, 16 Dec 2012 00:49:44 +0100 Subject: [PATCH] flashbench: unbreak build on microblaze 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 --- package/flashbench/flashbench.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/flashbench/flashbench.mk b/package/flashbench/flashbench.mk index ead1346f7b..faf8ae69ec 100644 --- a/package/flashbench/flashbench.mk +++ b/package/flashbench/flashbench.mk @@ -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 -- 2.30.2