[LTP] [PATCH] openposix: lib: Use the configured compiler

Anders Roxell anders.roxell@linaro.org
Mon Sep 28 23:27:21 CEST 2026


The lib Makefile does not include env.mk, so it does not get CC from
config.mk. When we cross compile, libcommon.a gets built with the host
compiler. Then the linker skips it and most tests fail to build.

Include env.mk, like the other Makefiles do.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 testcases/open_posix_testsuite/lib/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testcases/open_posix_testsuite/lib/Makefile b/testcases/open_posix_testsuite/lib/Makefile
index ad6a9d7e6a1b..e63ee42647ac 100644
--- a/testcases/open_posix_testsuite/lib/Makefile
+++ b/testcases/open_posix_testsuite/lib/Makefile
@@ -1,6 +1,8 @@
 top_srcdir?=		..
 subdir=			lib
 
+include $(top_srcdir)/include/mk/env.mk
+
 AR?=			ar
 RANLIB?=		ranlib
 CFLAGS+=		-I$(top_srcdir)/include
-- 
2.53.0



More information about the ltp mailing list