94084c
commit d3bf2f5927d51258a51ac7fde04f4805f8ee294a
94084c
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
94084c
Date:   Wed Nov 3 09:19:30 2021 -0300
94084c
94084c
    elf: Do not run DSO sorting if tunables is not enabled
94084c
    
94084c
    Since the argorithm selection requires tunables.
94084c
    
94084c
    Checked on x86_64-linux-gnu with --enable-tunables=no.
94084c
94084c
diff --git a/elf/Makefile b/elf/Makefile
94084c
index 8dd2b24328113536..02ee834fdaf00a26 100644
94084c
--- a/elf/Makefile
94084c
+++ b/elf/Makefile
94084c
@@ -483,8 +483,10 @@ include $(objpfx)$(1).generated-makefile
94084c
 endef
94084c
 
94084c
 # Generate from each testcase description file
94084c
+ifeq (yes,$(have-tunables))
94084c
 $(eval $(call include_dsosort_tests,dso-sort-tests-1.def))
94084c
 $(eval $(call include_dsosort_tests,dso-sort-tests-2.def))
94084c
+endif
94084c
 
94084c
 check-abi: $(objpfx)check-abi-ld.out
94084c
 tests-special += $(objpfx)check-abi-ld.out