diff --git a/vulkan-validationlayers.spec b/vulkan-validationlayers.spec index 4c241f4..44be83c 100644 --- a/vulkan-validationlayers.spec +++ b/vulkan-validationlayers.spec @@ -28,7 +28,11 @@ Source: https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/ Patch2: xxhash.diff Patch3: gcc13.diff BuildRequires: cmake >= 3.7.12 -BuildRequires: gcc-c++ >= 4.8 +%if 0%{?suse_version} >= 1599 +BuildRequires: gcc-c++ +%else +BuildRequires: gcc11-c++ +%endif BuildRequires: glslang-devel >= 12.2 BuildRequires: memory-constraints BuildRequires: pkg-config @@ -60,6 +64,12 @@ cat >gxx <<-EOF #!/bin/sh exec g++ "\$@" -lpthread EOF +%if 0%{?suse_version} < 1599 +cat >gxx <<-EOF + #!/bin/sh + exec g++-11 "\$@" -lpthread +EOF +%endif chmod a+x gxx export CXX="$PWD/gxx" %cmake -DGLSLANG_INSTALL_DIR="%_bindir" \