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