X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=38ca653cd655b8dd6209df0229fdf86e1754edc6;hp=d2e5df761c09e45e5943cc7ba328cd8f34f3746f;hb=d7e5c1de20c3adb24676f405e8930a61c5746759;hpb=ea4a36f6673fe09075554d52d327149469d427a7 diff --git a/bin/blhc b/bin/blhc index d2e5df7..38ca653 100755 --- 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', );