]> ruderich.org/simon Gitweb - blhc/blhc.git/log
blhc/blhc.git
12 years agoAlso accept -O3, not only -O2.
Simon Ruderich [Sat, 17 Mar 2012 16:43:48 +0000 (17:43 +0100)]
Also accept -O3, not only -O2.

12 years agoSupport architectures which can't use all hardening flags.
Simon Ruderich [Sat, 17 Mar 2012 16:39:17 +0000 (17:39 +0100)]
Support architectures which can't use all hardening flags.

Detect architecture automatically if dpkg-buildpackage is used. It can
also be set with the --arch option.

12 years agoRemove argument $cc_regex of is_non_verbose_build().
Simon Ruderich [Sat, 17 Mar 2012 15:10:42 +0000 (16:10 +0100)]
Remove argument $cc_regex of is_non_verbose_build().

The global definition is now used.

12 years agoMove constants/variables before functions.
Simon Ruderich [Sat, 17 Mar 2012 15:09:58 +0000 (16:09 +0100)]
Move constants/variables before functions.

No other code changes.

12 years agot/logs/configure: Add another configure output.
Simon Ruderich [Sat, 17 Mar 2012 15:08:53 +0000 (16:08 +0100)]
t/logs/configure: Add another configure output.

12 years agoIgnore unimportant lines at the beginning of the log.
Simon Ruderich [Sat, 17 Mar 2012 14:59:08 +0000 (15:59 +0100)]
Ignore unimportant lines at the beginning of the log.

12 years agoSupport verbose builds which use "Compiling filename...".
Simon Ruderich [Fri, 16 Mar 2012 17:18:07 +0000 (18:18 +0100)]
Support verbose builds which use "Compiling filename...".

12 years agoSupport non-verbose messages in verbose build for other build systems.
Simon Ruderich [Fri, 16 Mar 2012 17:07:19 +0000 (18:07 +0100)]
Support non-verbose messages in verbose build for other build systems.

CMake isn't the only one doing that.

12 years agoFix typo in linker command regex.
Simon Ruderich [Fri, 16 Mar 2012 16:44:08 +0000 (17:44 +0100)]
Fix typo in linker command regex.

12 years agot: Add linker test with -o at the end of the line.
Simon Ruderich [Fri, 16 Mar 2012 16:43:32 +0000 (17:43 +0100)]
t: Add linker test with -o at the end of the line.

12 years agot: Add tests for x86_64-linux-gnu-g++.
Simon Ruderich [Fri, 16 Mar 2012 16:31:59 +0000 (17:31 +0100)]
t: Add tests for x86_64-linux-gnu-g++.

12 years agoSupport filenames which contain "~".
Simon Ruderich [Fri, 16 Mar 2012 04:50:09 +0000 (05:50 +0100)]
Support filenames which contain "~".

12 years agoAdd support for versioned gcc version (e.g. gcc-4.6).
Simon Ruderich [Fri, 16 Mar 2012 04:07:21 +0000 (05:07 +0100)]
Add support for versioned gcc version (e.g. gcc-4.6).

12 years agot/logs/verbose-build: Add possible false positive.
Simon Ruderich [Fri, 16 Mar 2012 00:07:30 +0000 (01:07 +0100)]
t/logs/verbose-build: Add possible false positive.

12 years agot/tests.t: Consistently use '..' instead of "..".
Simon Ruderich [Thu, 15 Mar 2012 23:54:13 +0000 (00:54 +0100)]
t/tests.t: Consistently use '..' instead of "..".

This makes pasting tests simpler because \ doesn't has to be escaped
inside '..'.

12 years agoFix indentation, whitespace only change.
Simon Ruderich [Thu, 15 Mar 2012 23:52:27 +0000 (00:52 +0100)]
Fix indentation, whitespace only change.

12 years agoUse non-capturing groups where possible.
Simon Ruderich [Thu, 15 Mar 2012 23:51:58 +0000 (00:51 +0100)]
Use non-capturing groups where possible.

12 years agoCorrectly detect verbose CMake builds.
Simon Ruderich [Thu, 15 Mar 2012 23:48:22 +0000 (00:48 +0100)]
Correctly detect verbose CMake builds.

12 years agoStore regex for compiler commands in a global variable.
Simon Ruderich [Thu, 15 Mar 2012 22:54:41 +0000 (23:54 +0100)]
Store regex for compiler commands in a global variable.

12 years agoFix false positive with file names containg "cc".
Simon Ruderich [Thu, 15 Mar 2012 21:39:57 +0000 (22:39 +0100)]
Fix false positive with file names containg "cc".

For example "test.cc". Also add another non-verbose test.

12 years agoDetect non-verbose build logs.
Simon Ruderich [Thu, 15 Mar 2012 21:37:30 +0000 (22:37 +0100)]
Detect non-verbose build logs.

Also update exit code for "Missing hardening flags".

12 years agoIgnore more "./configure" false positives.
Simon Ruderich [Thu, 15 Mar 2012 21:27:13 +0000 (22:27 +0100)]
Ignore more "./configure" false positives.

12 years agoAlso support -fpic in -fPIE/-fPIC conflict detection.
Simon Ruderich [Thu, 15 Mar 2012 19:59:30 +0000 (20:59 +0100)]
Also support -fpic in -fPIE/-fPIC conflict detection.

12 years agoAccept libraries with version numbers before ".so".
Simon Ruderich [Thu, 15 Mar 2012 19:57:30 +0000 (20:57 +0100)]
Accept libraries with version numbers before ".so".

12 years agoFix indentation.
Simon Ruderich [Thu, 15 Mar 2012 17:11:42 +0000 (18:11 +0100)]
Fix indentation.

12 years agoAccept libraries which end with a character (e.g. .so.0d).
Simon Ruderich [Thu, 15 Mar 2012 17:10:40 +0000 (18:10 +0100)]
Accept libraries which end with a character (e.g. .so.0d).

12 years agot: Add another linker test.
Simon Ruderich [Thu, 15 Mar 2012 15:31:38 +0000 (16:31 +0100)]
t: Add another linker test.

12 years agoImprove linker command detection to handle line breaks correctly.
Simon Ruderich [Wed, 14 Mar 2012 01:25:11 +0000 (02:25 +0100)]
Improve linker command detection to handle line breaks correctly.

12 years agoDocument linker command detection regex.
Simon Ruderich [Wed, 14 Mar 2012 01:06:16 +0000 (02:06 +0100)]
Document linker command detection regex.

12 years agoImprove linker command detection.
Simon Ruderich [Wed, 14 Mar 2012 01:03:12 +0000 (02:03 +0100)]
Improve linker command detection.

-llib can be used in non linker commands as well.

12 years agoIgnore false positive in ./configure summary.
Simon Ruderich [Tue, 13 Mar 2012 23:02:48 +0000 (00:02 +0100)]
Ignore false positive in ./configure summary.

12 years agoCorrectly handle files with "c++" in their name.
Simon Ruderich [Tue, 13 Mar 2012 22:43:48 +0000 (23:43 +0100)]
Correctly handle files with "c++" in their name.

Names like "c++defs.h-t" and "c++defs.h" are used by some build scripts.

12 years agoSupport versioned libraries (e.g. test.so.1.0.0).
Simon Ruderich [Tue, 13 Mar 2012 21:10:13 +0000 (22:10 +0100)]
Support versioned libraries (e.g. test.so.1.0.0).

12 years agot/tests.t,t/logs/cc: Add test for .cc files.
Simon Ruderich [Tue, 13 Mar 2012 20:46:59 +0000 (21:46 +0100)]
t/tests.t,t/logs/cc: Add test for .cc files.

12 years agoImprove detection of linker commands.
Simon Ruderich [Tue, 13 Mar 2012 20:44:33 +0000 (21:44 +0100)]
Improve detection of linker commands.

Now -o is checked if it links to a binary (no extension) or a library
(.so or .la).

Also add tests.

12 years agobin/blhc: Another fix for libtool --mode=link.
Simon Ruderich [Mon, 12 Mar 2012 16:32:47 +0000 (17:32 +0100)]
bin/blhc: Another fix for libtool --mode=link.

12 years agobin/blhc: Improve regex for libtool --mode=link (and relink).
Simon Ruderich [Sun, 11 Mar 2012 17:39:09 +0000 (18:39 +0100)]
bin/blhc: Improve regex for libtool --mode=link (and relink).

Also add tests.

12 years agot: Add tests for "libtool --mode=compile".
Simon Ruderich [Sat, 10 Mar 2012 21:39:59 +0000 (22:39 +0100)]
t: Add tests for "libtool --mode=compile".

12 years ago.gitignore: Ignore META.json and META.yml.
Simon Ruderich [Sat, 10 Mar 2012 21:36:59 +0000 (22:36 +0100)]
.gitignore: Ignore META.json and META.yml.

12 years agot: Add tests for compiler "x86_64-linux-gnu-gcc".
Simon Ruderich [Sat, 10 Mar 2012 21:33:49 +0000 (22:33 +0100)]
t: Add tests for compiler "x86_64-linux-gnu-gcc".

12 years agoFirst working version.
Simon Ruderich [Sat, 10 Mar 2012 21:19:43 +0000 (22:19 +0100)]
First working version.

Also add tests.

12 years agoInitial commit, skeleton only.
Simon Ruderich [Sat, 10 Mar 2012 20:38:13 +0000 (21:38 +0100)]
Initial commit, skeleton only.