* [ptxdist] [PATCH] host-libcap: always build a dynamically linked exectables
@ 2019-11-25 17:59 Bruno Thomsen
0 siblings, 0 replies; only message in thread
From: Bruno Thomsen @ 2019-11-25 17:59 UTC (permalink / raw)
To: ptxdist; +Cc: Bruno Thomsen, bth
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-25 17:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25 17:59 [ptxdist] [PATCH] host-libcap: always build a dynamically linked exectables Bruno Thomsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox