Commit Graph

60 Commits

Author SHA1 Message Date
Stefan Berger
384bf2e2a7 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 <stefanb@linux.vnet.ibm.com>
2015-05-01 21:15:46 -04:00
Stefan Berger
40e13951a9 build: do not set -D_FORTIFY_SOURCE=2 when -O0 is set or -O is missing
-D_FORTIFY_SOURCE needs optimization, so we do not set it if -O0 is
set or -O is missing.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2015-05-01 12:07:21 -04:00
Stefan Berger
4461f8a74e Add LT_INIT to configure.ac
Add missing LT_INIT to configure.ac.
2015-04-29 10:29:01 -04:00
Stefan Berger
793852f1a5 Add relro and now to hardening cflags, if available
Check ld for availability of relro and now flags and add them to the
hardening cflags if available.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2015-02-03 14:06:46 -05:00
Stefan Berger
bfb1c7739a Use hardening CFLAGS
Add hardening CFLAGS -D_FORTIFY_SOURCE=2 and stack protector.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2015-02-02 06:58:59 -05:00
Stefan Berger
893d9b9528 Check for missing freebl headers and freebl lib
Add a check for missing freebl header blapi.h (missing in Ubuntu)
and missing freebl static library that provides AES_CreateContext.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2014-12-18 10:44:08 -05:00
Stefan Berger
03d25ba067 Make compileable on Ubuntu and docu for Ubuntu
Ubuntu has different package names that need to be documented separtely.
Ubuntu requires exec_prefix in the libtpms.pc file for pkg-config to work.
Rework some of the configure.ac parts.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2014-12-15 22:10:07 -05:00
Stefan Berger
fd8aa8c36f Catch missing nss-devel and nspr-devel dependencies
Catch nspr-config and nss-config dependencies in te configure script.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2014-07-03 17:38:34 -04:00
Stefan Berger
ff5fac41e4 Create version 0.5.2
Set the version of the library to 0.5.2.
Synchronize the rpm spec with the one used in Fedora and set the release
version to 1.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2014-06-30 15:04:15 -04:00
Stefan Berger
017c810393 Use boostrap.sh to build rpm on Fedora machines
Use bootstrap.sh before running configure when building an rpm.
Reorder the tools in bootstrap.sh to avoid error messages.

Rename configure.in to configure.ac to quite down more recent autotools.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
2014-01-21 14:21:36 -06:00