net-p2p/monero: fix build for musl

This patch sets -DSTACK_TRACE=OFF when elibc_musl is
defined. Execinfo is not provided by musl libc and therefore the build
fails.

Other, and probably better solutions would be to not depend on
execinfo or to package a standalone
libexecinfo (https://github.com/mikroskeem/libexecinfo) and add it to
the DEPEND-array if using musl. But that's better to take upstream. I
think this is totally fine for most users for now.

Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
(cherry picked from commit 127aa286150e16e92305fda7cbbdde70da976147)
This commit is contained in:
Alfred Persson Forsberg
2022-07-01 14:38:03 +02:00
parent 87c6e59ffc
commit d0dcc91c2c

View File

@@ -52,6 +52,8 @@ src_configure() {
-DUSE_DEVICE_TREZOR=OFF
)
use elibc_musl && mycmakeargs+=( -DSTACK_TRACE=OFF )
cmake_src_configure
}