Work around GCC 10 defaulting to -fno-common in media/ffvpx/libavcodec/

This commit is contained in:
Fedor 2020-05-25 08:50:11 +03:00
parent 036a5c9e13
commit 56466b9697
1 changed files with 5 additions and 0 deletions

View File

@ -161,6 +161,11 @@ SOURCES += [
SYMBOLS_FILE = 'avcodec.symbols'
NO_VISIBILITY_FLAGS = True
# GCC 10 defaults -fno-common, we don't care to solve this "properly" yet
# so use GCC < 10 behavior.
if CONFIG['GNU_CC'] and CONFIG['CC_VERSION'] >= '10.0.0':
CFLAGS += ['-fcommon']
USE_LIBS += [
'mozavutil'
]