[glibc] Makefile: Depend on elf/subdir_lib only if $(subdirs) has elf
"H.J. Lu via Glibc-cvs" <[email protected]> Mon, 6 Jul 2026 08:28:43 +0000 (GMT)
| Newsgroups | gmane.comp.lib.glibc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0f61d77aef1bcd5977211e87e0496768f5650c0e commit 0f61d77aef1bcd5977211e87e0496768f5650c0e Author: H.J. Lu <[email protected]> Date: Mon Jul 6 08:51:10 2026 +0800 Makefile: Depend on elf/subdir_lib only if $(subdirs) has elf commit 7cac99621e9601f916121bcaa9b7734a2e4c2529 Author: Adhemerval Zanella <[email protected]> Date: Wed Jun 10 16:26:15 2026 -0300 Makefile: Run the subdirectory recursion in parallel added: $(elf-objpfx)ld.so $(elf-objpfx)sofini.os $(elf-objpfx)interp.os: \ | elf/subdir_lib ; which doesn't work with $ make check -jN subdirs=DIR where DIR doesn't have elf. Add such rule only if $(subdirs) has elf. This fixes BZ #34355. Signed-off-by: H.J. Lu <[email protected]> Diff: --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 54de425e9e..a6aabca691 100644 --- a/Makefile +++ b/Makefile @@ -614,8 +614,10 @@ ifeq (yes,$(build-shared)) # builds them. The explicit empty recipe (';') is required, a # prerequisite-only rule would send make on an implicitrule search and # have this level compile them itself with the wrong context. +ifneq (,$(filter elf,$(subdirs))) $(elf-objpfx)ld.so $(elf-objpfx)sofini.os $(elf-objpfx)interp.os: \ | elf/subdir_lib ; +endif ifneq (,$(filter sunrpc,$(subdirs))) # Makerules explicit adds librpc_compat_pic.a as a dependency of # libc_pic.a.