From d7b999e947fae16ddbe8857640c7e87433a1d54b Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 11 Feb 2022 22:12:07 +0100 Subject: [PATCH] package/gstreamer1/gst1-plugins-base: fix build with gcc 4.8 Fix the following build failure with gcc 4.8 raised since bump to version 1.20.0 in commit 801131157dcef2c97e947a1d3e8c9bfa7aa3d870: ../gst-libs/gst/video/video-converter.c: In function 'convert_I420_v210': ../gst-libs/gst/video/video-converter.c:3771:7: error: 'for' loop initial declarations are only allowed in C99 mode for (int j = width * 4 - 1; j >= 0; j--) { ^ Fixes: - http://autobuild.buildroot.org/results/c4b1449f35debcbabff7e42abe239695d4ad4d21 Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk b/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk index 68281738fa..08aac850cd 100644 --- a/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +++ b/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk @@ -11,6 +11,8 @@ GST1_PLUGINS_BASE_INSTALL_STAGING = YES GST1_PLUGINS_BASE_LICENSE_FILES = COPYING GST1_PLUGINS_BASE_LICENSE = LGPL-2.1+ +GST1_PLUGINS_BASE_CFLAGS = $(TARGET_CFLAGS) -std=gnu99 + GST1_PLUGINS_BASE_CONF_OPTS = \ -Dexamples=disabled \ -Dtests=disabled \