libtorrent: Disable instrumentation on ppc/mips

From https://github.com/rakshasa/rtorrent/issues/156
all atomics (__sync_fetch_and_and_8) are not avaliable on
mips/ppc, this patch helps workaround the build error

Fixes
ld: libtorrent.so: undefined reference to `__sync_add_and_fetch_8'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2019-11-17 20:31:32 -08:00
parent 1e1acb72c9
commit 8931598cc0
@@ -15,6 +15,13 @@ PV = "0.13.8"
S = "${WORKDIR}/git"
PACKAGECONFIG ??= "instrumentation"
PACKAGECONFIG_remove_mipsarch = "instrumentation"
PACKAGECONFIG_remove_powerpc = "instrumentation"
PACKAGECONFIG[instrumentation] = "--enable-instrumentation,--disable-instrumentation,"
inherit autotools pkgconfig
EXTRA_OECONF = "--with-zlib=${STAGING_EXECPREFIXDIR}"