[
https://issues.apache.org/jira/browse/MINIFICPP-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16830304#comment-16830304
]
Mr TheSegfault edited comment on MINIFICPP-834 at 4/30/19 1:37 PM:
-------------------------------------------------------------------
{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. ( With
the start and end link searches in the appropriate place)
was (Author: phrocker):
{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)