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

Petr Vorel pvorel@suse.cz
Tue Sep 29 17:07:43 CEST 2026


Hi Anders,

> 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.

Make sense, thanks!
Verified and merged even close before the release.

Kind regards,
Petr

> 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


More information about the ltp mailing list