[4/4] package/dvblast: fix static build on ARM Cortex-M
diff mbox series

Message ID 20191002042626.26676-4-bernd.kuhls@t-online.de
State New
Headers show
Series
  • [1/4] package/gzip: fix static build on ARM Cortex-M
Related show

Commit Message

Bernd Kuhls Oct. 2, 2019, 4:26 a.m. UTC
For details see
http://lists.busybox.net/pipermail/buildroot/2019-June/253203.html

Fixes:
http://autobuild.buildroot.net/results/155/1555cf00b9e8cc942b955a2f2f5edf0a2072eff2/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/dvblast/dvblast.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Patch
diff mbox series

diff --git a/package/dvblast/dvblast.mk b/package/dvblast/dvblast.mk
index 3571ff3c74..5dc43e276e 100644
--- a/package/dvblast/dvblast.mk
+++ b/package/dvblast/dvblast.mk
@@ -13,6 +13,12 @@  DVBLAST_DEPENDENCIES = bitstream libev
 
 DVBLAST_MAKE_ENV = $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS)
 
+# workaround for elf2flt bug
+# https://github.com/uclinux-dev/elf2flt/issues/11
+ifeq ($(BR2_ARM_CPU_ARMV7M)$(BR2_STATIC_LIBS),yy)
+DVBLAST_MAKE_ENV += CFLAGS="$(TARGET_CFLAGS) -O0"
+endif
+
 ifeq ($(BR2_PACKAGE_LIBICONV),y)
 DVBLAST_DEPENDENCIES += libiconv
 DVBLAST_MAKE_ENV += LDLIBS=-liconv