]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Also accept -O3, not only -O2.
[blhc/blhc.git] / bin / blhc
index d2e5df761c09e45e5943cc7ba328cd8f34f3746f..38ca653cd655b8dd6209df0229fdf86e1754edc6 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -37,7 +37,7 @@ my $warning_regex = qr/^(.+?):([0-9]+):[0-9]+: warning: (.+?) \[(.+?)\]$/;
 # Expected (hardening) flags. All flags are used as regexps.
 my @cflags = (
     '-g',
-    '-O2',
+    '-O(?:2|3)',
 );
 my @cflags_format = (
     '-Wformat',
@@ -71,6 +71,7 @@ my @ldflags_pie = (
 );
 # Renaming rules for the output so the regex parts are not visible.
 my %flag_renames = (
+    '-O(?:2|3)'       => '-O2',
     '-Wl,(-z,)?relro' => '-Wl,-z,relro',
     '-Wl,(-z,)?now'   => '-Wl,-z,now',
 );