SHA256
1
0
forked from pool/glslang

leap15.x build support

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/glslang?expand=0&rev=121
This commit is contained in:
Jan Engelhardt 2023-10-27 05:56:24 +00:00 committed by Git OBS Bridge
parent 81bd82d0fa
commit 7c13cb11ea

View File

@ -30,9 +30,13 @@ Source3: baselibs.conf
BuildRequires: bison BuildRequires: bison
BuildRequires: cmake >= 3.14.0 BuildRequires: cmake >= 3.14.0
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python3-base BuildRequires: python3-base
BuildRequires: spirv-tools-devel BuildRequires: spirv-tools-devel
%if 0%{?suse_version} && 0%{?suse_version} < 1599
BuildRequires: gcc11-c++
%else
BuildRequiers: c++_compiler
%endif
%description %description
glslang is a compiler front end for the OpenGL ES and OpenGL shading glslang is a compiler front end for the OpenGL ES and OpenGL shading
@ -87,6 +91,9 @@ but which some downstream packages rely on.
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects %global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
# ABI keeps on breaking (gh#3052 #3311 #3312) # ABI keeps on breaking (gh#3052 #3311 #3312)
echo "V_%version { global: *; };" >/tmp/z.sym echo "V_%version { global: *; };" >/tmp/z.sym
%if 0%{?suse_version} && 0%{?suse_version} < 1599
export CC=gcc-11 CXX=g++-11
%endif
# Trim -Wl,--no-undefined for now (https://github.com/KhronosGroup/glslang/issues/1484) # Trim -Wl,--no-undefined for now (https://github.com/KhronosGroup/glslang/issues/1484)
%cmake -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \ %cmake -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
-DALLOW_EXTERNAL_SPIRV_TOOLS:BOOL=ON -DENABLE_OPT:BOOL=ON -DALLOW_EXTERNAL_SPIRV_TOOLS:BOOL=ON -DENABLE_OPT:BOOL=ON