From 384bf2e2a73c77589e6fe74c1e1a3bb8425cb573 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Fri, 1 May 2015 21:15:46 -0400 Subject: [PATCH] build: Disable volatile storage debug for debug build Disable the volatile storage debug for a debug build since this causes the volatile state file to be written and this changes the behavior upon a restart of the TPM. This may cause the TPM to not work correctly then. Print out some more build parameters. Signed-off-by: Stefan Berger --- configure.ac | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2fa9ffb0..ed95d1f0 100644 --- a/configure.ac +++ b/configure.ac @@ -51,7 +51,10 @@ fi debug_defines= if test "$DEBUG" == "yes"; then - debug_defines="-DTPM_DEBUG -DTPM_VOLATILE_STORE" + debug_defines="-DTPM_DEBUG" + # Enable the following only if ABSOLUTELY necessary + # volatile state will be written and behavior changes + #"-DTPM_VOLATILE_STORE" fi AC_SUBST(DEBUG_DEFINES, $debug_defines) @@ -166,5 +169,16 @@ AC_CONFIG_FILES(Makefile \ tests/Makefile) AC_OUTPUT +if test -z "$enable_debug" ; then + enable_debug="no" +fi + +echo echo "CFLAGS=$CFLAGS" echo "LDFLAGS=$LDFLAGS" +echo +echo "Version to build : $PACKAGE_VERSION" +echo "Crypto library : $cryptolib" +echo "Debug build : $enable_debug" +echo +echo