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 <giulio.benetti@micronovasrl.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
79bea6cf60
commit
dc7fa8491c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user