!3 fix build error caused by upgrading gcc to 12.3.0
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
4aa623bf53
15
Fix-compilation-failure-caused-by-gcc12.patch
Normal file
15
Fix-compilation-failure-caused-by-gcc12.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index d8cb25b..69b2a55 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -405,8 +405,8 @@ if test "$enable_media_studio_va" = "yes"; then
|
||||
[Defined to 1 to enable H265 encoding when --enable-media-studio-va="yes"])
|
||||
fi
|
||||
|
||||
-AC_SUBST([AM_CFLAGS], ["-g -O2 -fPIE -fPIC -fstack-protector -Wall -Wno-unused-function -Wno-cpp -Werror"])
|
||||
-AC_SUBST([AM_CXXFLAGS], ["-g -O2 -fPIE -fPIC -fstack-protector -Wall -Wno-unused-function -Wno-cpp -Wno-missing-braces -Werror"])
|
||||
+AC_SUBST([AM_CFLAGS], ["-g -O2 -fPIE -fPIC -fstack-protector -Wall -Wno-unused-function -Wno-cpp -Werror -Wno-array-compare -Wno-address"])
|
||||
+AC_SUBST([AM_CXXFLAGS], ["-g -O2 -fPIE -fPIC -fstack-protector -Wall -Wno-unused-function -Wno-cpp -Wno-missing-braces -Werror -Wno-array-compare -Wno-address"])
|
||||
|
||||
#Add flags for SDL signoff called SDL325 - Compile With Defenses Enabled
|
||||
AC_SUBST([AM_CPPFLAGS], ["-D_FORTIFY_SOURCE=2"])
|
||||
@ -1,11 +1,14 @@
|
||||
Name: libyami
|
||||
Version: 1.3.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Another Media Infrastructure
|
||||
License: ASL 2.0 and BSD
|
||||
URL: https://github.com/intel/libyami
|
||||
Source0: https://github.com/intel/libyami/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch0000: libyami-libtool-macro.patch
|
||||
Patch0001: Fix-compilation-failure-caused-by-gcc12.patch
|
||||
|
||||
BuildRequires: libtool gcc-c++ libva-devel pkgconfig(libdrm) pkgconfig(x11)
|
||||
%description
|
||||
Yami is the core building block of a media solution. It uses hardware acceleration to parses and decode video streams.
|
||||
@ -47,6 +50,9 @@ autoreconf -vif
|
||||
%{_libdir}/pkgconfig/libyami.pc
|
||||
|
||||
%changelog
|
||||
* Sat Jul 15 2023 xu_ping <707078654@qq.com> - 1.3.2-2
|
||||
- Fix compilation failure caused by gcc upgrade to 12.
|
||||
|
||||
* Tue Jun 29 2021 lingsheng <lingsheng@huawei.com> - 1.3.2-1
|
||||
- Update to 1.3.2
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user