Skip to content

Commit a01de73

Browse files
authored
Resolve linking issue flagged in 7.0.0-dev7 (#7595)
1 parent f934066 commit a01de73

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cmake/ccf_app.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ function(add_ccf_app name)
3737
target_link_options(${name} PRIVATE LINKER:--no-undefined)
3838
endif()
3939

40+
# Tracked in https://github.com/microsoft/CCF/issues/7596. Workaround for a
41+
# circular dependency between ccf.a and ccfcrypto.a
42+
target_link_options(
43+
${name} PRIVATE
44+
LINKER:--undefined=_ZN3ccf9threading21get_current_thread_idEv
45+
)
46+
4047
set_property(TARGET ${name} PROPERTY POSITION_INDEPENDENT_CODE ON)
4148

4249
add_san(${name})

0 commit comments

Comments
 (0)