From acc10d8198370b6f0c1ddba988e35e57d30509545dbd44049db4a017177f0429 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 31 May 2023 00:30:34 +0000 Subject: [PATCH] 15.4 compiler OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-validationlayers?expand=0&rev=123 --- vulkan-validationlayers.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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" \