fix linker issue

pull/5476/head
Matthias L. Jugel 2018-01-12 23:04:40 +01:00
parent e2ae5607e9
commit 9e503559bd
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ SET_TARGET_PROPERTIES({{name}} PROPERTIES ENABLE_EXPORTS 1)
TARGET_LINK_LIBRARIES({{name}}
{% for libname in dependencies.keys()|sort(reverse=true) %}{{libname}}
{% endfor %})
# add dependencies for stdc++, c and nosys so the linker stage works
TARGET_LINK_LIBRARIES({{name}} stdc++ c nosys)
{% if pp -%}
add_custom_command(TARGET {{name}} PRE_LINK