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 <[email protected]>
Signed-off-by: Bruno Thomsen <[email protected]>
---
 rules/tpm2-tools.make | 3 +++
 1 file changed, 3 insertions(+)

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
 # ----------------------------------------------------------------------------
-- 
2.24.1


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to