# Build log hardening check, checks build logs for missing hardening flags.
-# Copyright (C) 2012-2022 Simon Ruderich
+# Copyright (C) 2012-2023 Simon Ruderich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
}
if ($option_version) {
print <<"EOF";
-blhc $VERSION Copyright (C) 2012-2022 Simon Ruderich
+blhc $VERSION Copyright (C) 2012-2023 Simon Ruderich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
\s.+\s
-I\S+/mkspecs/[a-z]+-g\++(?:-64)?
\s}x;
+ # nvcc is not a regular C compiler
+ next if $line =~ m{^\S+/bin/nvcc\s};
# Ignore false positives when the line contains only CC=gcc but no
# other gcc command.
if ($line =~ /(.*)CC=$cc_regex_full(.*)/o) {
blhc: ignore-line-regexp: REGEXP
All lines fully matching REGEXP (see B<--ignore-line> for details) will be
-ignored.
+ignored. The string can be embedded multiple times to ignore different
+regexps.
Please use this feature sparingly so that missing flags are not overlooked. If
you find false positives which affect more packages please report a bug.
=head1 LICENSE AND COPYRIGHT
-Copyright (C) 2012-2022 by Simon Ruderich
+Copyright (C) 2012-2023 by Simon Ruderich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by