From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iZIeH-0001kA-Nw for ptxdist@pengutronix.de; Mon, 25 Nov 2019 18:59:46 +0100 Received: by mail-wr1-x441.google.com with SMTP id z7so15839582wrl.13 for ; Mon, 25 Nov 2019 09:59:45 -0800 (PST) From: Bruno Thomsen Date: Mon, 25 Nov 2019 18:59:38 +0100 Message-Id: <20191125175938.3945-1-bruno.thomsen@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] host-libcap: always build a dynamically linked exectables 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 , bth@kamstrup.com 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 --- 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