X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fblhc;h=465ce0fc04d4708fd5fbdab00f5aed68206a6d3c;hb=46cd48288d8300d525282dc31926108f264ee985;hp=666c2afc207ddbb6bbacb4d997c107d9306a0df9;hpb=5d47f4a04c4a45b6cacca330725539822b99a276;p=blhc%2Fblhc.git diff --git a/bin/blhc b/bin/blhc index 666c2af..465ce0f 100755 --- a/bin/blhc +++ b/bin/blhc @@ -32,7 +32,7 @@ our $VERSION = '0.01'; # Regex to catch compiler commands. my $cc_regex = qr/(?:[a-z0-9_]+-(?:linux-|kfreebsd-)?gnu(?:eabi|eabihf)?-)? - (?:(?) { # Ignore false positives. # # `./configure` output. - next if not $non_verbose and $line =~ /^checking /; + next if not $non_verbose + and $line =~ /^(?:checking|(?:C|c)onfigure:) /; next if $line =~ /^\s*(?:Host\s+)?(?:C\s+)? (?:C|c)ompiler[\s.]*:?\s+ $cc_regex @@ -461,9 +462,6 @@ while (my $line = <>) { or $line =~ /^\s*(?:- )?(?:HOST_)?(?:CC|CXX)\s*=\s*$cc_regex\s*$/ or $line =~ /^\s*-- Check for working (?:C|CXX) compiler: / or $line =~ /^\s*(?:echo )?Using [A-Z_]+\s*=\s*/; - # Debian buildd output. - next if $line =~ /^\s*Depends: .*?$cc_regex.*?$/ - and $line !~ /\s-./; # option, prevent false negatives # Check if additional hardening options were used. Used to ensure # they are used for the complete build.