From 702b3bf53ac4d7e3d483c9b12123235ba83c5395 Mon Sep 17 00:00:00 2001 From: Thomas Groman Date: Tue, 30 Mar 2021 02:53:48 -0700 Subject: Work around GCC 10 defaulting to -fno-common in media/ffvpx/libavcodec/ --- media/ffvpx/libavcodec/moz.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'media/ffvpx/libavcodec') diff --git a/media/ffvpx/libavcodec/moz.build b/media/ffvpx/libavcodec/moz.build index 05217a6e4..210ea0ba8 100644 --- a/media/ffvpx/libavcodec/moz.build +++ b/media/ffvpx/libavcodec/moz.build @@ -67,6 +67,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' ] -- cgit v1.2.3