From f322f07b36d98fd3e5988509966b032c15455d88 Mon Sep 17 00:00:00 2001 From: ferrreo Date: Fri, 28 Apr 2023 20:41:22 +0100 Subject: [PATCH] Turn off warnings as errors it dumb --- main.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.sh b/main.sh index 80c8e98..34b367a 100755 --- a/main.sh +++ b/main.sh @@ -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