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