From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Bruno Thomsen Date: Tue, 7 Jan 2020 17:23:27 +0100 Message-Id: <20200107162327.9950-1-bruno.thomsen@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] tpm2-tools: add PIC flag to CFLAGS List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de 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 Signed-off-by: Bruno Thomsen --- 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