MFH: r522326
net-p2p/monero-cli: fix build on non-x86 Architectures that don't have libunwind available should disable stack trace. Otherwise, the following linking error is encountered: /usr/local/bin/ld: src/common/libcommon.a(stack_trace.cpp.o): in function `tools::log_stack_trace(char const*)': stack_trace.cpp:(.text+0x71c): undefined reference to `el::base::debug::StackTrace::generateNew()' /usr/local/bin/ld: stack_trace.cpp:(.text+0x72c): undefined reference to `el::base::debug::operator<<(std::ostream&, el::base::debug::StackTrace const&)' collect2: error: ld returned 1 exit status PR: 242846 Approved by: vd (maintainer timeout) Approved by: portmgr (fix build blanket)
This commit is contained in:
parent
afdffb3e3a
commit
2dc4c0d9f4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q1/; revision=522327
@ -82,6 +82,8 @@ CMAKE_ARGS+= -DLD_RAW_FLAGS:STRING=-m${LD_EMULATION}
|
||||
# keep in sync with all platforms where libunwind is available
|
||||
.if (${ARCH} == amd64 || ${ARCH} == i386)
|
||||
LIB_DEPENDS+= libunwind.so:devel/libunwind
|
||||
.else
|
||||
CMAKE_ARGS+= -DSTACK_TRACE:BOOL=OFF
|
||||
.endif
|
||||
|
||||
CMAKE_ARGS+= -DMANUAL_SUBMODULES:BOOL=ON
|
||||
|
Loading…
Reference in New Issue
Block a user