Skip to content

Commit ba1dd18

Browse files
wbx-githubtpetazzoni
authored andcommitted
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 <[email protected]> [Thomas: add gcc 6.x condition.] Signed-off-by: Thomas Petazzoni <[email protected]>
1 parent 076095a commit ba1dd18

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

package/vlc/vlc.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ VLC_AUTORECONF = YES
1515
# Install vlc libraries in staging.
1616
VLC_INSTALL_STAGING = YES
1717

18+
# gcc bug internal compiler error: in merge_overlapping_regs, at
19+
# regrename.c:304. This bug is fixed since gcc 6.
20+
ifeq ($(BR2_microblaze):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:)
21+
VLC_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O0"
22+
VLC_CONF_OPTS += --disable-optimizations
23+
endif
24+
1825
# VLC defines two autoconf functions which are also defined by our own pkg.m4
1926
# from pkgconf. Unfortunately, they are defined in a different way: VLC adds
2027
# --enable- options, but pkg.m4 adds --with- options. To make sure we use

0 commit comments

Comments
 (0)