]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Also ignore PIE flags when -shared is used.
[blhc/blhc.git] / bin / blhc
index 61de44ef7df8bd5fb28cefe29364c9c5debd0571..b4d87e45eb9dc856e574906e4958afc04f4317d5 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -193,6 +193,7 @@ my @def_ldflags_pie = (
 my @def_ldflags_pic = (
     '-fPIC',
     '-fpic',
+    '-shared',
 );
 # Renaming rules for the output so the regex parts are not visible. Also
 # stores string values of flag regexps above, see compile_flag_regexp().
@@ -602,7 +603,11 @@ FILE: foreach my $file (@ARGV) {
     close $fh;
 
     if (scalar @input == 0) {
-        print "No compiler commands!\n";
+        if (not $option_buildd) {
+            print "No compiler commands!\n";
+        } else {
+            print "W-no-compiler-commands\n";
+        }
         $exit |= 1;
         next FILE;
     }
@@ -850,7 +855,7 @@ blhc - build log hardening check, checks build logs for missing hardening flags
 
 =head1 SYNOPSIS
 
-B<blhc> [options] <dpkg-buildpackage build log file>..
+B<blhc> [I<options>] I<E<lt>dpkg-buildpackage build log fileE<gt>..>
 
 =head1 DESCRIPTION