diff --git a/libplacebo-OGLCompiler.patch b/libplacebo-OGLCompiler.patch new file mode 100644 index 0000000..2761281 --- /dev/null +++ b/libplacebo-OGLCompiler.patch @@ -0,0 +1,12 @@ +https://github.com/haasn/libplacebo/issues/226 +--- libplacebo/src/glsl/meson.build 2023-12-02 20:48:51.445273381 -0400 ++++ libplacebo_patch/src/glsl/meson.build 2023-12-05 10:56:49.083295970 -0400 +@@ -44,7 +44,7 @@ elif not glslang_req.disabled() + # Always required for static linking + cxx.find_library('MachineIndependent', required: true, static: true), + cxx.find_library('OSDependent', required: true, static: true), +- cxx.find_library('OGLCompiler', required: true, static: true), ++# cxx.find_library('OGLCompiler', required: true, static: true), + cxx.find_library('GenericCodeGen', required: true, static: true), + # SPIRV-Tools are required only if optimizer is enabled in glslang build + cxx.find_library('SPIRV-Tools', required: false, static: true), diff --git a/libplacebo.spec b/libplacebo.spec index 960f876..fc33f6d 100644 --- a/libplacebo.spec +++ b/libplacebo.spec @@ -8,6 +8,8 @@ Summary: Reusable library for GPU-accelerated video/image rendering primi License: LGPL-2.0-or-later URL: https://github.com/haasn/libplacebo Source0: %{url}/archive/v%{version}%{?prerelease}/%{name}-%{version}%{?prerelease}.tar.gz +# https://github.com/haasn/libplacebo/issues/226 +Patch1: https://github.com/haasn/libplacebo/files/13562418/libplacebo-OGLCompiler.patch BuildRequires: gcc BuildRequires: gcc-c++