All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] build: Build libltp before 'make modules'
@ 2026-11-25  8:47 Avinesh Kumar via ltp
  2026-11-25  9:08 ` Li Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Avinesh Kumar via ltp @ 2026-11-25  8:47 UTC (permalink / raw)
  To: ltp

From: Avinesh Kumar <avinesh.kumar@suse.com>

Since 3cb6144e0834, libltp.a is only built on demand when make is
started inside testcases/. 'make modules' runs each module directory in
a sub-make, so on a clean tree the userspace binaries there (acpi,
uaccess, fw_load, init_module, ...) fail to link with
"cannot find -lltp".

Make 'modules' depend on lib-all, as 'test' already does, so libltp.a is
built once before any module directory is entered.

Fixes: 3cb6144e0834 ("build: Build shared libraries once when make runs in testcases/")
Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0abb5c6b4f67..e2c8bf37bf29 100644
--- a/Makefile
+++ b/Makefile
@@ -222,7 +222,7 @@ MODULE_DIRS :=  $(shell \
 
 
 .PHONY: modules modules-clean modules-install
-modules:
+modules: lib-all
 	@$(foreach dir,$(MODULE_DIRS),\
 		echo "Build $(dir)";\
 		$(MAKE) -C $(dir) || exit $$?; \
-- 
2.56.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] build: Build libltp before 'make modules'
  2026-11-25  8:47 [LTP] [PATCH] build: Build libltp before 'make modules' Avinesh Kumar via ltp
@ 2026-11-25  9:08 ` Li Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Li Wang @ 2026-11-25  9:08 UTC (permalink / raw)
  To: Avinesh Kumar; +Cc: ltp

Patch merged, thanks!

-- 
Regards,
Li Wang

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-25  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  8:47 [LTP] [PATCH] build: Build libltp before 'make modules' Avinesh Kumar via ltp
2026-11-25  9:08 ` Li Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.