summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-27 07:07:25 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-27 21:35:46 +0100
commitba1dd18a4963cb0e63fbc93bb5e108c4d1f137b5 (patch)
tree3d182f9d87eb2cb6e37f53d2ee3138e42bdcd280
parent076095a860ba24a4bc8302e5bfa5c753c00d228a (diff)
downloadbuildroot-ba1dd18a4963cb0e63fbc93bb5e108c4d1f137b5.tar.gz
buildroot-ba1dd18a4963cb0e63fbc93bb5e108c4d1f137b5.zip
vlc: workaround microblaze gcc internal compiler error
Override gcc optimization flags with -O0. The workaround is not required for gcc6 anymore, so we take this into account into our condition. Fixes: http://autobuild.buildroot.net/results/a318f0838a6a602046e719103ac81965c0084d52 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> [Thomas: add gcc 6.x condition.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/vlc/vlc.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/vlc/vlc.mk b/package/vlc/vlc.mk
index 666b8d4bf5..583edf3659 100644
--- a/package/vlc/vlc.mk
+++ b/package/vlc/vlc.mk
@@ -15,6 +15,13 @@ VLC_AUTORECONF = YES
# Install vlc libraries in staging.
VLC_INSTALL_STAGING = YES
+# gcc bug internal compiler error: in merge_overlapping_regs, at
+# regrename.c:304. This bug is fixed since gcc 6.
+ifeq ($(BR2_microblaze):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:)
+VLC_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O0"
+VLC_CONF_OPTS += --disable-optimizations
+endif
+
# VLC defines two autoconf functions which are also defined by our own pkg.m4
# from pkgconf. Unfortunately, they are defined in a different way: VLC adds
# --enable- options, but pkg.m4 adds --with- options. To make sure we use
OpenPOWER on IntegriCloud