Jan Engelhardt 2022-10-24 23:21:44 +00:00 committed by Git OBS Bridge
parent faaa6ef3ec
commit ad1f9fd19f

View File

@ -75,6 +75,14 @@ perl -i -pe 's{\@PACKAGE_VERSION\@}{%version}' CMakeLists.txt
%build
%limit_build -m 2000
# C++ <thread> 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 \