Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2017 09:42:45 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r451589 - head/net-p2p/libtorrent
Message-ID:  <201710090942.v999gj7d094869@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Oct  9 09:42:45 2017
New Revision: 451589
URL: https://svnweb.freebsd.org/changeset/ports/451589

Log:
  Disable instrumentation on 32-bit PowerPC like we already do for i386/gcc
  to avoid linking errors (e.g., when building dependent `net-p2p/rtorrent'
  port) and update the comment accordingly.
  
  PR:	222799 (modified)

Modified:
  head/net-p2p/libtorrent/Makefile

Modified: head/net-p2p/libtorrent/Makefile
==============================================================================
--- head/net-p2p/libtorrent/Makefile	Mon Oct  9 09:19:47 2017	(r451588)
+++ head/net-p2p/libtorrent/Makefile	Mon Oct  9 09:42:45 2017	(r451589)
@@ -2,7 +2,7 @@
 
 PORTNAME=	libtorrent
 PORTVERSION=	0.13.6
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net-p2p
 MASTER_SITES=	http://rtorrent.net/downloads/
 
@@ -39,10 +39,11 @@ KQUEUE_CONFIGURE_WITH=	kqueue
 BROKEN=		Does not build with openssl-devel
 .endif
 
-# Disable amd64 atomic ops on i386 when using gcc
-# undefined reference to __sync_add_and_fetch_8
-# undefined reference to __sync_fetch_and_and_8
-.if ${ARCH} == i386 && ${CHOSEN_COMPILER_TYPE} == gcc
+# Disable instrumentation, which requires 64-bit atomic ops, on i386 (when
+# using gcc) and powerpc to avoid linking errors:
+# /usr/local/lib/libtorrent.so: undefined reference to `__sync_add_and_fetch_8'
+# /usr/local/lib/libtorrent.so: undefined reference to `__sync_fetch_and_and_8'
+.if ${ARCH} == i386 && ${CHOSEN_COMPILER_TYPE} == gcc || ${ARCH} == powerpc
 CONFIGURE_ARGS+=--disable-instrumentation
 .endif
 



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