You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mr TheSegfault (JIRA)" <ji...@apache.org> on 2019/04/30 13:37:00 UTC
[jira] [Commented] (MINIFICPP-834) Create static links for lzma
[ https://issues.apache.org/jira/browse/MINIFICPP-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16830304#comment-16830304 ]
Mr TheSegfault commented on MINIFICPP-834:
------------------------------------------
{code:java}
if (NOT USE_SHARED_LIBS)
target_link_libraries(minifiexe -static-libgcc -static-libstdc++)
set_target_properties(minifiexe PROPERTIES LINK_SEARCH_START_STATIC 1)
set_target_properties(minifiexe PROPERTIES LINK_SEARCH_END_STATIC 1)
endif(NOT USE_SHARED_LIBS)
{code}
The above block in main's cmake helps solve a lot of issues like this.
> Create static links for lzma
> ----------------------------
>
> Key: MINIFICPP-834
> URL: https://issues.apache.org/jira/browse/MINIFICPP-834
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Reporter: Mr TheSegfault
> Priority: Major
> Fix For: 0.7.0
>
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> Statically link lzma when shared libs are turned off.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)