aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/rtorrent
diff options
context:
space:
mode:
authorAndrej Zverev <az@FreeBSD.org>2013-11-02 08:32:28 +0000
committerAndrej Zverev <az@FreeBSD.org>2013-11-02 08:32:28 +0000
commita1a91e218218009bee9fd8a1a7c364438e497f89 (patch)
treec31a15027992c850693132762b2c96cbfcf64cf7 /net-p2p/rtorrent
parentf29bf5fd0eb15d1e46735d84c84224b633d7f6f5 (diff)
downloadports-a1a91e218218009bee9fd8a1a7c364438e497f89.tar.gz
ports-a1a91e218218009bee9fd8a1a7c364438e497f89.zip
- Try to fix build on 10.x and fix segfault while running rtorrent
Notes
Notes: svn path=/head/; revision=332456
Diffstat (limited to 'net-p2p/rtorrent')
-rw-r--r--net-p2p/rtorrent/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/net-p2p/rtorrent/Makefile b/net-p2p/rtorrent/Makefile
index 84ba2df1973a..15df94571243 100644
--- a/net-p2p/rtorrent/Makefile
+++ b/net-p2p/rtorrent/Makefile
@@ -35,6 +35,12 @@ NO_STAGE= yes
BROKEN= Does not configure on arm
.endif
+# Workaround to build and segfault on > 10.x
+.if ${OSVERSION} >= 1000000
+USE_GCC= yes
+LDFLAGS+= -lc++
+.endif
+
.if ${PORT_OPTIONS:MXMLRPC}
CONFIGURE_ARGS+= --with-xmlrpc-c
LIB_DEPENDS+= xmlrpc.3:${PORTSDIR}/net/xmlrpc-c-devel