From c576b23718906b9b1d84c0a52acc5c94583d66b8 Mon Sep 17 00:00:00 2001 From: su-fang Date: Tue, 25 Apr 2023 16:01:35 +0800 Subject: [PATCH] libatomic.diff Description: Inject libatomic dependency to fix armel build as in #918060 Author: Paolo Greppi --- addon/doxyparse/CMakeLists.txt | 4 ++++ src/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/addon/doxyparse/CMakeLists.txt b/addon/doxyparse/CMakeLists.txt index 7747566..316a233 100644 --- a/addon/doxyparse/CMakeLists.txt +++ b/addon/doxyparse/CMakeLists.txt @@ -22,6 +22,9 @@ if (use_libclang) else() set(CLANG_LIBS libclang clang-cpp ${llvm_libs}) endif() + if ($ENV{DEB_HOST_ARCH} STREQUAL "armel") + set(EXTRA_CLANG_LIBS atomic) + endif() endif() target_link_libraries(doxyparse @@ -39,6 +42,7 @@ ${SQLITE3_LIBRARIES} ${EXTRA_LIBS} ${CLANG_LIBS} ${COVERAGE_LINKER_FLAGS} +${EXTRA_CLANG_LIBS} ) install(TARGETS doxyparse DESTINATION bin) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9f7e653..5638f32 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -347,6 +347,9 @@ if (use_libclang) set(CLANG_LIBS libclang clang-cpp) endif() target_compile_definitions(doxygen PRIVATE ${LLVM_DEFINITIONS}) + if ($ENV{DEB_HOST_ARCH} STREQUAL "armel") + set(EXTRA_CLANG_LIBS atomic) + endif() endif() target_link_libraries(doxygen PRIVATE @@ -365,6 +368,7 @@ target_link_libraries(doxygen PRIVATE ${CLANG_LIBS} ${COVERAGE_LINKER_FLAGS} ${DOXYGEN_EXTRA_LINK_OPTIONS} + ${EXTRA_CLANG_LIBS} ) set_project_warnings(doxycfg)