build: Build libltp before 'make modules'
PATCH 1/1 build: Build libltp before 'make modules'
From: Avinesh Kumar <[email protected]>
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 <[email protected]>
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -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 $$?; \
Signature · 5 lines
2.56.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Patch merged, thanks!
Signature · 5 lines
Regards, Li Wang -- Mailing list info: https://lists.linux.it/listinfo/ltp