cmake: apply cxa throw wrap flags when linking common

This commit is contained in:
selsta
2026-07-13 23:10:17 +02:00
parent 2044af1952
commit c3c3d233ab
+2
View File
@@ -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")