From ad1f9fd19fe83c4fa5aa7b7a299d18accfdedd1351b7dd5f777ad0075bce177e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 24 Oct 2022 23:21:44 +0000 Subject: [PATCH] 15.3 build OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-validationlayers?expand=0&rev=105 --- vulkan-validationlayers.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vulkan-validationlayers.spec b/vulkan-validationlayers.spec index 9221cfc..70afca7 100644 --- a/vulkan-validationlayers.spec +++ b/vulkan-validationlayers.spec @@ -75,6 +75,14 @@ perl -i -pe 's{\@PACKAGE_VERSION\@}{%version}' CMakeLists.txt %build %limit_build -m 2000 +# C++ needs -lpthread for pthread_create +# (under glibc>=2.34 it's not strictly needed anymore due to symbol move) +cat >gxx <<-EOF + #!/bin/sh + exec g++ "\$@" -lpthread +EOF +chmod a+x gxx +export CXX="$PWD/gxx" %cmake -DGLSLANG_INSTALL_DIR="%_bindir" \ -DSPIRV_HEADERS_INSTALL_DIR="%_includedir" \ -DBUILD_LAYER_SUPPORT_FILES=ON \