[Devel] [PATCH RHEL10 COMMIT] selftests: sched: drop unnecessary rpath from Makefile

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jan 23 18:39:33 MSK 2026


The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.1.vz10
------>
commit 6b449bcadc3af4cd87453535787dd29ec32cc062
Author: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
Date:   Sun Jan 11 22:03:48 2026 +0000

    selftests: sched: drop unnecessary rpath from Makefile
    
    The sched kselftest Makefile adds -Wl,-rpath=./ to the linker flags.
    This rpath is not required, as the test binaries do not rely on shared
    libraries from the build directory.
    
    https://virtuozzo.atlassian.net/browse/VSTOR-121549
    
    Signed-off-by: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
---
 tools/testing/selftests/sched/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/testing/selftests/sched/Makefile b/tools/testing/selftests/sched/Makefile
index 099ee9213557a..0e4581ded9d6c 100644
--- a/tools/testing/selftests/sched/Makefile
+++ b/tools/testing/selftests/sched/Makefile
@@ -4,8 +4,7 @@ ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),)
 CLANG_FLAGS += -no-integrated-as
 endif
 
-CFLAGS += -O2 -Wall -g -I./ $(KHDR_INCLUDES) -Wl,-rpath=./ \
-	  $(CLANG_FLAGS)
+CFLAGS += -O2 -Wall -g -I./ $(KHDR_INCLUDES) $(CLANG_FLAGS)
 LDLIBS += -lpthread
 
 TEST_GEN_FILES := cs_prctl_test


More information about the Devel mailing list