From: Giulio Benetti Date: Fri, 14 Jun 2019 21:03:46 +0000 (+0200) Subject: package/flashbench: remove old toolchain microblaze & sh2a workaround X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc7fa8491c633a112709a038ba44cd9999be33b5;p=buildroot.git package/flashbench: remove old toolchain microblaze & sh2a workaround The old binary Microblaze and Sh2a toolchains were affected by Glibc Bug 1228: https://sourceware.org/bugzilla/show_bug.cgi?id=1228 that has been fixed in 2005, so let's remove actual work around: 'FLASHBENCH_CFLAGS += -std=gnu99' for both BR2_microblaze and BR2_sh2a and remove local FLASHBENCH_CFLAGS in favour of TARGET_CFLAGS. Signed-off-by: Giulio Benetti Signed-off-by: Thomas Petazzoni --- diff --git a/package/flashbench/flashbench.mk b/package/flashbench/flashbench.mk index cbcf9ea2d1..e89a250aa3 100644 --- a/package/flashbench/flashbench.mk +++ b/package/flashbench/flashbench.mk @@ -9,16 +9,9 @@ FLASHBENCH_SITE = git://git.linaro.org/people/arnd/flashbench.git FLASHBENCH_LICENSE = GPL-2.0 FLASHBENCH_LICENSE_FILES = COPYING -FLASHBENCH_CFLAGS = $(TARGET_CFLAGS) - -ifeq ($(BR2_microblaze)$(BR2_sh2a),y) -# microblaze and sh2a toolchains only provide 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)" \ + CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS) -lrt" endef