diff mbox series

[oe,meta-oe,5/5] libtorrent: Disable instrumentation on ppc/mips

Message ID 20191118050352.1379153-5-raj.khem@gmail.com
State Accepted
Commit 8931598cc0c48440b336be548d51e1473fbe4d15
Headers show
Series [oe,meta-oe,1/5] libmad: Define O2 for all arches as default optimization | expand

Commit Message

Khem Raj Nov. 18, 2019, 5:03 a.m. UTC
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>

---
 meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.24.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
index a3902b25f6..3ee69554b6 100644
--- a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
+++ b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
@@ -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}"