Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2020 11:46:24 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r522327 - branches/2020Q1/net-p2p/monero-cli
Message-ID:  <202001071146.007BkOBJ098208@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Jan  7 11:46:24 2020
New Revision: 522327
URL: https://svnweb.freebsd.org/changeset/ports/522327

Log:
  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)

Modified:
  branches/2020Q1/net-p2p/monero-cli/Makefile
Directory Properties:
  branches/2020Q1/   (props changed)

Modified: branches/2020Q1/net-p2p/monero-cli/Makefile
==============================================================================
--- branches/2020Q1/net-p2p/monero-cli/Makefile	Tue Jan  7 11:45:07 2020	(r522326)
+++ branches/2020Q1/net-p2p/monero-cli/Makefile	Tue Jan  7 11:46:24 2020	(r522327)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001071146.007BkOBJ098208>