From c3c3d233abb5fecc9437c06b847be387e76479b0 Mon Sep 17 00:00:00 2001 From: selsta Date: Mon, 13 Jul 2026 23:10:17 +0200 Subject: [PATCH] cmake: apply cxa throw wrap flags when linking common --- src/common/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 6c1303ee9..26194e702 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -86,6 +86,8 @@ target_link_libraries(common ${EXTRA_LIBRARIES}) if (STACK_TRACE_USE_WRAP) + set_property(TARGET common APPEND PROPERTY LINK_FLAGS + "-Wl,--wrap=__cxa_throw") set_property(TARGET common APPEND PROPERTY INTERFACE_LINK_OPTIONS "-Wl,--wrap=__cxa_throw" "-Wl,-u,__wrap___cxa_throw")