From 168715be1975b4129e971f6669bb376deef03375 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Fri, 6 Mar 2026 21:12:44 +0000 Subject: [PATCH 1/2] Add LZMA dependency for worker tasks when using libc++ --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74ee310c71e..192e2dcd260 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -284,6 +284,12 @@ add_ccf_static_library( ${CCF_DIR}/src/tasks/worker.cpp ) target_link_libraries(ccf_tasks PRIVATE ${CMAKE_DL_LIBS}) +if(USE_LIBCXX) + # worker.cpp uses backtrace() which, under libc++, resolves through + # libunwind. On systems where libunwind is built with LZMA support + # (e.g. Azure Linux), this creates a transitive dependency on liblzma. + target_link_libraries(ccf_tasks PRIVATE lzma) +endif() # Common test args for Python scripts starting up CCF networks set(WORKER_THREADS From b27cf3ddcfadfa4ce4a9188cccebb383163ff2b7 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Fri, 6 Mar 2026 21:30:19 +0000 Subject: [PATCH 2/2] Incredible! How DOES he do it? --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 192e2dcd260..653ffff3462 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -285,9 +285,9 @@ add_ccf_static_library( ) target_link_libraries(ccf_tasks PRIVATE ${CMAKE_DL_LIBS}) if(USE_LIBCXX) - # worker.cpp uses backtrace() which, under libc++, resolves through - # libunwind. On systems where libunwind is built with LZMA support - # (e.g. Azure Linux), this creates a transitive dependency on liblzma. + # worker.cpp uses backtrace() which, under libc++, resolves through libunwind. + # On systems where libunwind is built with LZMA support (e.g. Azure Linux), + # this creates a transitive dependency on liblzma. target_link_libraries(ccf_tasks PRIVATE lzma) endif()