X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=94ceb6f01f806ee64db5f6878dcb163e39508214;hp=d2a4cc31c2cd1b72eb8153eaf68cf13ac36d4e5d;hb=f593354f68feceea096b52a371be2ba76a8f785f;hpb=9395672628a14a9064e0b049fbc0aa6f83544fb0 diff --git a/bin/blhc b/bin/blhc index d2a4cc3..94ceb6f 100755 --- a/bin/blhc +++ b/bin/blhc @@ -744,6 +744,13 @@ foreach my $file (@ARGV) { [Cc]ompiler[\s.]*:?\s+ /xo; next if $line =~ /^\s*(?:- )?(?:HOST_)?(?:CC|CXX)\s*=\s*$cc_regex_full\s*$/o; + # `moc-qt4`, contains '-I/usr/share/qt4/mkspecs/linux-g++' (or + # similar for other architectures) which gets recognized as a + # compiler line. Ignore it. + next if $line =~ m{^/usr/bin/moc-qt4 + \s.+\s + -I/usr/share/qt4/mkspecs/[a-z]+-g\++(?:-64)? + \s}x; # Check if additional hardening options were used. Used to ensure # they are used for the complete build.