[PATCH v2] Build programs in $(others-noinstall) like tests
H.J. Lu
hjl.tools@gmail.com
Mon Sep 15 18:24:22 GMT 2025
Programs in $(others-noinstall) are internal to glibc build and they
aren't installed. They should be treated like programs in $(others),
but linked like tests so that --enable-hardcoded-path-in-tests also
applies to them.
Also replace run-via-rtld-prefix with test-via-rtld-prefix when running
container tests.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
Rules | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Rules b/Rules
index 44c041c491..7f6d063673 100644
--- a/Rules
+++ b/Rules
@@ -195,9 +195,10 @@ xtests:
> $(objpfx)subdir-xtests.sum
ifeq ($(build-programs),yes)
-binaries-all-notests = $(others) $(sysdep-others)
+binaries-all-notests = $(filter-out $(others-noinstall), \
+ $(others) $(sysdep-others))
binaries-all-tests = $(tests) $(tests-internal) $(xtests) $(test-srcs) \
- $(tests-container)
+ $(tests-container) $(others-noinstall)
binaries-all = $(binaries-all-notests) $(binaries-all-tests)
binaries-static-notests = $(others-static)
binaries-static-tests = $(tests-static) $(xtests-static)
@@ -385,7 +386,7 @@ $(objpfx)%.out: /dev/null $(objpfx)% # Make it 2nd arg for canned sequence.
# and pid namespaces) in which to run, should be added to
# tests-container.
$(tests-container:%=$(objpfx)%.out): $(objpfx)%.out : $(if $(wildcard $(objpfx)%.files),$(objpfx)%.files,/dev/null) $(objpfx)%
- $(test-wrapper-env) $(run-program-env) $(run-via-rtld-prefix) \
+ $(test-wrapper-env) $(run-program-env) $(test-via-rtld-prefix) \
$(common-objpfx)support/test-container env $(run-program-env) $($*-ENV) \
$(host-test-program-cmd) $($*-ARGS) > $@; \
$(evaluate-test)
--
2.51.0
More information about the Libc-alpha
mailing list