]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Support -g3
[blhc/blhc.git] / bin / blhc
index 5bbcae73a63cbbebaef4a7096f6a253224ebb38b..97e8e7f5c0be8300d6cfaad0f819b794f333f4c0 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -206,7 +206,7 @@ my $file_extension_regex = qr/
 # Expected (hardening) flags. All flags are used as regexps (and compiled to
 # real regexps below for better execution speed).
 my @def_cflags = (
-    '-g',
+    '-g3?',
     '-O(?:2|3)', # keep at index 1, search for @def_cflags_debug to change it
 );
 my @def_cflags_debug = (
@@ -296,6 +296,7 @@ my @flag_refs_all = (
 # Renaming rules for the output so the regex parts are not visible. Also
 # stores string values of flag regexps above, see compile_flag_regexp().
 my %flag_renames = (
+    '-g3?'                         => '-g',
     '-O(?:2|3)'                    => '-O2',
     '-Wformat(?:=2)?'              => '-Wformat',
     '--param[= ]ssp-buffer-size=4' => '--param=ssp-buffer-size=4',