1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

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)
This commit is contained in:
Alexey Dokuchaev 2017-10-09 09:42:45 +00:00
parent 0a0f0adf69
commit 78e71d7df6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=451589

View File

@ -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