The end of the build log is now respected, "Depends:" comes after that.
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.
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c test.c
- Depends: libc6 (>= 2.7), gcc
-
# `...` isn't expanded by the Makefile, assume dpkg-buildflags returns the
# correct flags.
gcc -c `dpkg-buildflags --get CFLAGS` test.c
g++ -c `dpkg-buildflags --get CXXFLAGS` `dpkg-buildflags --get CPPFLAGS` test.cc
gcc -o test test.o `dpkg-buildflags --get LDFLAGS`
gcc -o test test.o `dpkg-buildflags --get CFLAGS`
+
+Build finished at 20120308-1648
+
+ Depends: libc6 (>= 2.7), gcc