summaryrefslogtreecommitdiff
path: root/media-video/mkvtoolnix/files/mkvtoolnix-56.1.0-optlevel.patch
blob: c0f91deed6962db0d6b9bb7011d71436f61c7698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
https://gitlab.com/mbunkus/mkvtoolnix/-/commit/ba6db89e24aa84316372d59e6bba4ac88145b32a
https://bugs.gentoo.org/786978#c10
diff --git a/Rakefile b/Rakefile
index 8c9487436ac627cc503e5f233d3f9c756f67fd86..ce564127eeb136b1c1784568ad68a4d593d0931a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -355,7 +355,7 @@ cxx_compiler = lambda do |*args|
     # Even -O1 causes compilation time & memory usage to skyrocket,
     # possibly exponentially, with the number of entries to
     # emplace_back() into the vector.
-    flags.gsub!(%r{ -O\d+ }, ' -O0 ')
+    flags.gsub!(%r{(^| )-O[^ ]*}, ' -O0')
   end
 
   args = [