From: Bruno Thomsen <bruno.thomsen@gmail.com>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>,
Bastian Krause <bst@pengutronix.de>
Subject: [ptxdist] [PATCH] tpm2-tools: add PIC flag to CFLAGS
Date: Tue, 7 Jan 2020 17:23:27 +0100 [thread overview]
Message-ID: <20200107162327.9950-1-bruno.thomsen@gmail.com> (raw)
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
reply other threads:[~2020-01-07 16:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200107162327.9950-1-bruno.thomsen@gmail.com \
--to=bruno.thomsen@gmail.com \
--cc=bst@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox