mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bruno Thomsen <bruno.thomsen@gmail.com>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>, bth@kamstrup.com
Subject: [ptxdist] [PATCH] host-libcap: always build a dynamically linked exectables
Date: Mon, 25 Nov 2019 18:59:38 +0100	[thread overview]
Message-ID: <20191125175938.3945-1-bruno.thomsen@gmail.com> (raw)

For unknown reasons the libcap executables are build static if a .git directory
is present in the topdir folder. Linking breaks if position independent
executables are activated in the ptxdist hardening flags.

This patch overrides the git detection to always build dynamically linked
executables.

Related: eda8ef326785 ("libcap: always build a dynamically linked exectables")

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
---
 rules/host-libcap.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/host-libcap.make b/rules/host-libcap.make
index 5407efd01..61df84778 100644
--- a/rules/host-libcap.make
+++ b/rules/host-libcap.make
@@ -16,7 +16,7 @@ HOST_PACKAGES-$(PTXCONF_HOST_LIBCAP) += host-libcap
 # Prepare
 # ----------------------------------------------------------------------------
 
-HOST_LIBCAP_MAKE_OPT := prefix= BUILD_GPERF=no PAM_CAP=no LIBATTR=no lib=lib
+HOST_LIBCAP_MAKE_OPT := prefix= BUILD_GPERF=no PAM_CAP=no LIBATTR=no DYNAMIC=yes lib=lib
 HOST_LIBCAP_INSTALL_OPT := $(HOST_LIBCAP_MAKE_OPT) RAISE_SETFCAP=no install
 
 # vim: syntax=make
-- 
2.23.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-11-25 17:59 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=20191125175938.3945-1-bruno.thomsen@gmail.com \
    --to=bruno.thomsen@gmail.com \
    --cc=bth@kamstrup.com \
    --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