File tablegen-test-link-static.patch of Package llvm11.27474
diff --git a/llvm/unittests/TableGen/CMakeLists.txt b/llvm/unittests/TableGen/CMakeLists.txt
index 328ba56691d..fa3aca31962 100644
--- a/llvm/unittests/TableGen/CMakeLists.txt
+++ b/llvm/unittests/TableGen/CMakeLists.txt
@@ -9,7 +9,7 @@ tablegen(LLVM AutomataTables.inc -gen-searchable-tables)
tablegen(LLVM AutomataAutomata.inc -gen-automata)
add_public_tablegen_target(AutomataTestTableGen)
-add_llvm_unittest(TableGenTests
+add_llvm_unittest(TableGenTests DISABLE_LLVM_LINK_LLVM_DYLIB
CodeExpanderTest.cpp
AutomataTest.cpp
)