Turn off warnings as errors it dumb

This commit is contained in:
ferrreo 2023-04-28 20:41:22 +01:00 committed by GitHub
parent a884d791fc
commit f322f07b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,14 @@ git clone --recursive https://github.com/obsproject/obs-studio.git
cp -rvf ./debian ./obs-studio/
cd ./obs-studio
# remove -Werror flag to mitigate FTBFS with ffmpeg 5.1
sed -i 's|-Werror-implicit-function-declaration||g' CMakeLists.txt
## remove Werror to fix compile error
# there's probably a cleaner way to do this by modifying what compile flags
# the rpmbuilder adds
sed -i 's| -Werror||g' cmake/Modules/CompilerConfig.cmake
for i in ../patches/*.patch; do patch -Np1 -i $i ;done
# Prepare plugins/obs-vkcapture