summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-12-15 23:49:44 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-12-15 23:49:44 (GMT)
commitd30e5e4fa462815fddefe40fb8f4cc611c71fd25 (patch)
treea54b0aad7ab13a136dbeafa647b7c433c773604e
parentc27d252f3544dac60225973316b8908cc21fc023 (diff)
downloadbuildroot-d30e5e4fa462815fddefe40fb8f4cc611c71fd25.tar.gz
buildroot-d30e5e4fa462815fddefe40fb8f4cc611c71fd25.tar.bz2
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 <jacmet@sunsite.dk>
-rw-r--r--package/flashbench/flashbench.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/flashbench/flashbench.mk b/package/flashbench/flashbench.mk
index ead1346..faf8ae6 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