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