cmake: apply cxa throw wrap flags when linking common

(cherry picked from commit b81fbb393e64e29e04f4f11e9d307442e1241027)
This commit is contained in:
selsta
2026-10-04 18:50:21 -04:00
committed by such-gitea
parent 7d1d93d168
commit ae82190d7b
+2
View File
@@ -88,6 +88,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")