From 11e804fcabce11a9fdfb4033263ef1e502cc8a72 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 28 May 2025 08:11:21 -0500 Subject: [PATCH] [clang-doc] Fix build break with BUILD_SHARED_LIBS=ON The error message: /usr/bin/ld: CMakeFiles/clang-doc.dir/ClangDocMain.cpp.o: undefined refe rence to symbol '_Z20getMustacheHtmlFilesN4llvm9StringRefERN5clang3doc15 ClangDocContextE' /usr/bin/ld: /work/kparzysz/git/llvm.org/b/x86/./lib/l ibclangDocSupport.so.21.0git: error adding symbols: DSO missing from com mand line collect2: error: ld returned 1 exit status make[2]: *** [tools/clang/tools/extra/clang-doc/tool/CMakeFiles/clang-do c.dir/build.make:107: bin/clang-doc] Error 1 --- clang-tools-extra/clang-doc/tool/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/clang-tools-extra/clang-doc/tool/CMakeLists.txt b/clang-tools-extra/clang-doc/tool/CMakeLists.txt index f380c621890f..7c9a94adec8a 100644 --- a/clang-tools-extra/clang-doc/tool/CMakeLists.txt +++ b/clang-tools-extra/clang-doc/tool/CMakeLists.txt @@ -9,6 +9,7 @@ clang_target_link_libraries(clang-doc clangAST clangASTMatchers clangBasic + clangDocSupport clangFrontend clangTooling clangToolingCore