mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] tpm2-tools: add PIC flag to CFLAGS
@ 2020-01-07 16:23 Bruno Thomsen
  0 siblings, 0 replies; only message in thread
From: Bruno Thomsen @ 2020-01-07 16:23 UTC (permalink / raw)
  To: ptxdist; +Cc: Bruno Thomsen, Bastian Krause

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>
---
 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
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-07 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-07 16:23 [ptxdist] [PATCH] tpm2-tools: add PIC flag to CFLAGS Bruno Thomsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox