[PATCH] Makefiles: Fix make check warnings

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed Nov 18 19:58:15 GMT 2026



On 17/11/26 13:25, Yury Khrustalev wrote:
> Fix make warning about incorrect file paths for the chapters.texi and
> top-menu.texi targets. This part has been assisted by LLM.
> 
> Fix ldconfig warning when it is invoked by make during creation of
> testroot due to use of the '-r' option that does not accept relative
> paths in config files.
> 
> Assisted-by: LLM
> 
> ---
> Passes regression on aarch64 and x86. OK for trunk?

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> 
> ---
>  Makefile        | 2 +-
>  manual/Makefile | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 6448e9f423..ef2570a5f3 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -834,7 +834,7 @@ $(objpfx)testroot.pristine/install.stamp :
>  	cp $(objpfx)support/true-container $(objpfx)testroot.pristine/bin/true
>  	# We need to be able to load extra language libraries.
>  	mkdir -p $(objpfx)testroot.pristine/etc/ld.so.conf.d
> -	echo 'include ld.so.conf.d/*.conf' > $(objpfx)testroot.pristine/etc/ld.so.conf
> +	echo 'include /etc/ld.so.conf.d/*.conf' > $(objpfx)testroot.pristine/etc/ld.so.conf
>  	echo $(gnulib-extralibdir) >> $(objpfx)testroot.pristine/etc/ld.so.conf
>  	echo '# file without content' > $(objpfx)testroot.pristine/etc/ld.so.conf.d/999-empty.conf
>  ifeq ($(run-built-tests),yes)
> diff --git a/manual/Makefile b/manual/Makefile
> index ab880589b6..afe49cb7fe 100644
> --- a/manual/Makefile
> +++ b/manual/Makefile
> @@ -64,7 +64,7 @@ texis-path := $(filter-out $(libc-texi-generated) summary.texi $(examples), \
>  					$(examples), $(texis)))
>  
>  # Kludge: implicit rule so Make knows the one command does it all.
> -chapters.% top-menu.%: libc-texinfo.sh $(texis-path) Makefile
> +$(objpfx)chapters.% $(objpfx)top-menu.%: libc-texinfo.sh $(texis-path) Makefile
>  	AWK=$(AWK) $(SHELL) $< $(objpfx) \
>  				'$(chapters)' \
>  			       '$(appendices) $(licenses)'
> 
> base-commit: 170ee485fa89b95c3bb7d5606c9812c6c100c9be



More information about the Libc-alpha mailing list