diff options
author | Bruno Thomsen <bruno.thomsen@gmail.com> | 2020-01-07 17:23:27 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-01-12 13:58:51 +0100 |
commit | 8b36aeb28f6c22ee68998c0ff8d61cc9fdc6fbd2 (patch) | |
tree | 6ba106c88d3b64f4fe01f61dfdff7f3b6c6ed893 | |
parent | e1605f16bc3b205ce25dac8f4bd4a65c3247cd11 (diff) | |
download | ptxdist-8b36aeb28f6c22ee68998c0ff8d61cc9fdc6fbd2.tar.gz ptxdist-8b36aeb28f6c22ee68998c0ff8d61cc9fdc6fbd2.tar.xz |
tpm2-tools: add PIC flag to CFLAGS
Package prepare stage can fail on some platforms due
to missing position independent code flag.
Fix this package failure:
checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... yes
checking whether C compiler accepts -fPIC... yes
checking whether the linker accepts -shared... no
configure: error: Cannot enable -shared, consider configuring with
--disable-hardening
Cc: Bastian Krause <bst@pengutronix.de>
Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/tpm2-tools.make | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/tpm2-tools.make b/rules/tpm2-tools.make index 9fbb0cbc7..ead881ffb 100644 --- a/rules/tpm2-tools.make +++ b/rules/tpm2-tools.make @@ -41,6 +41,9 @@ TPM2_TOOLS_CONF_OPT := \ --without-gcov \ --without-bashcompdir +TPM2_TOOLS_CFLAGS := \ + -fPIC + # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- |