aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/libtorrent
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2017-10-09 09:42:45 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2017-10-09 09:42:45 +0000
commit78e71d7df69a50841ad39654d514031a258bd50f (patch)
tree8264f18d161974a6991a646ecc0aa9bf47efd51a /net-p2p/libtorrent
parent0a0f0adf69f442e6403d4d5e7d11408b28cfd7d2 (diff)
downloadports-78e71d7df69a50841ad39654d514031a258bd50f.tar.gz
ports-78e71d7df69a50841ad39654d514031a258bd50f.zip
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)
Notes
Notes: svn path=/head/; revision=451589
Diffstat (limited to 'net-p2p/libtorrent')
-rw-r--r--net-p2p/libtorrent/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/net-p2p/libtorrent/Makefile b/net-p2p/libtorrent/Makefile
index ab4d1da4b504..ba5ba0036236 100644
--- a/net-p2p/libtorrent/Makefile
+++ b/net-p2p/libtorrent/Makefile
@@ -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