summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-12-16 00:49:44 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-12-16 00:49:44 +0100
commitd30e5e4fa462815fddefe40fb8f4cc611c71fd25 (patch)
treea54b0aad7ab13a136dbeafa647b7c433c773604e /package
parentc27d252f3544dac60225973316b8908cc21fc023 (diff)
downloadbuildroot-novena-d30e5e4fa462815fddefe40fb8f4cc611c71fd25.tar.gz
buildroot-novena-d30e5e4fa462815fddefe40fb8f4cc611c71fd25.zip
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>
Diffstat (limited to 'package')
-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 ead1346f7..faf8ae69e 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