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 <[email protected]>
---
 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
[email protected]

Reply via email to