Skip to content

Commit 9e50355

Browse files
committed
fix linker issue
1 parent e2ae560 commit 9e50355

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/export/cmake/CMakeLists.txt.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ SET_TARGET_PROPERTIES({{name}} PROPERTIES ENABLE_EXPORTS 1)
5555
TARGET_LINK_LIBRARIES({{name}}
5656
{% for libname in dependencies.keys()|sort(reverse=true) %}{{libname}}
5757
{% endfor %})
58+
# add dependencies for stdc++, c and nosys so the linker stage works
59+
TARGET_LINK_LIBRARIES({{name}} stdc++ c nosys)
5860

5961
{% if pp -%}
6062
add_custom_command(TARGET {{name}} PRE_LINK

0 commit comments

Comments
 (0)