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 \