[LTP] [PATCH v4 8/9] [RFC] make: Allow to add LTP library as a dependency for host

Petr Vorel <[email protected]>
Newsgroups it.linux.lists.ltp
Message-ID <[email protected]>
Will be used for metadata.c in the next commit.

Signed-off-by: Petr Vorel <[email protected]>
---
New in v4.

 include/mk/generic_leaf_target.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/mk/generic_leaf_target.inc b/include/mk/generic_leaf_target.inc
index 7c685fea76..1df18c1a75 100644
--- a/include/mk/generic_leaf_target.inc
+++ b/include/mk/generic_leaf_target.inc
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Generic leaf rules include Makefile.
-# Copyright (c) Linux Test Project, 2017-2022
+# Copyright (c) Linux Test Project, 2017-2026
 # Copyright (C) 2009, Cisco Systems Inc.
 # Ngie Cooper, July 2009
 
@@ -84,6 +84,9 @@ endif
 
 $(MAKE_TARGETS): | $(MAKE_DEPS)
 
+# Allow to host tools reuse libltp.a
+$(HOST_MAKE_TARGETS): | $(MAKE_DEPS)
+
 all: $(MAKE_TARGETS)
 
 clean:: $(CLEAN_DEPS)
-- 
2.55.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.