[oe-commits] [meta-openembedded] 03/09: libtorrent: Disable instrumentation on ppc/mips

git at git.openembedded.org git at git.openembedded.org
Tue Nov 19 01:17:33 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 8931598cc0c48440b336be548d51e1473fbe4d15
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Sun Nov 17 20:31:32 2019 -0800

    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 at gmail.com>
---
 meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb
index a3902b2..3ee6955 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}"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list