aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-06-13 15:29:13 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-06-13 16:06:44 -0400
commitc1986ecb6fc68427db7579d409929939117e45ff (patch)
tree8cb42a4ced5d8eab9d26408c383f537c71974b4e /configure
parent8f00911a21f4e95de84c60e09cc4df173e5b6701 (diff)
downloade2fsprogs-c1986ecb6fc68427db7579d409929939117e45ff.tar.gz
e2fsprogs-c1986ecb6fc68427db7579d409929939117e45ff.tar.xz
e2fsprogs-c1986ecb6fc68427db7579d409929939117e45ff.zip
Fix blhc (Build Log Hardening Check) warnings
The Build Log Hardening Check is a debian tool which scans the output of a package build making sure that the security hardening flags are used when compiling and linking all of binaries in a package. For the most part we were passing CFLAGS, CPPFLAGS, and LDFLAGS down to the compiler and link commands, but there there were one or two exceptions. In addition, there where a few places in "make install" where the V=1 option was not being honored, which triggered blhc warnings since it couldn't analyze those commands. The e2fsck.static was the only binary that was not getting built and packaged with the hardening flags, but I've fixed all of the blhc warnings so in the future it will be obvious if we regress. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index b741112e..732119ef 100755
--- a/configure
+++ b/configure
@@ -713,6 +713,7 @@ BSDLIB_CMT
ELF_CMT
HTREE_CMT
Q
+ES
E
LINK_BUILD_FLAGS
SYMLINK_RELATIVE
@@ -4434,11 +4435,13 @@ then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
$as_echo "Disabling verbose make commands" >&6; }
E=@echo
+ ES=echo
Q=@
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
$as_echo "Enabling verbose make commands" >&6; }
E=@\\#
+ ES=\\#
Q=
fi
@@ -4446,12 +4449,14 @@ else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
$as_echo "Disabling verbose make commands" >&6; }
E=@echo
+ES=echo
Q=@
fi
+
# Check whether --enable-compression was given.
if test "${enable_compression+set}" = set; then :
enableval=$enable_compression; if test "$enableval" = "no"
@@ -11304,7 +11309,7 @@ if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
fi
if test $cross_compiling = no; then
- BUILD_CFLAGS="$CFLAGS"
+ BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
BUILD_LDFLAGS="$LDFLAGS"
else
BUILD_CFLAGS=