On 31/07/15(Fri) 15:31, Stuart Henderson wrote:
> On 2015/07/31 15:53, Tobias Ulmer wrote:
> > Is David around? Any objections should be voiced in the next few hours,
> > before I commit this.
> 
> It's actually libtorrent not rtorrent that should be marked broken.
> 
> Would it be worth building on i386 with compiler flags to fix that,
> at the expense of not running on crappy old machines that you probably
> wouldn't want to run this on anyway?

There's only one atomic operation on a 64bit value and it is just for
instrumentation.  So by adding "--disable-instrumentation" to the
configure arguments libtorrent builds just fine on macppc.  I did not
try i386 but it should be the same.

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/libtorrent/Makefile,v
retrieving revision 1.41
diff -u -p -r1.41 Makefile
--- Makefile    31 Jul 2015 16:08:44 -0000      1.41
+++ Makefile    31 Jul 2015 16:45:13 -0000
@@ -11,7 +11,7 @@ NOT_FOR_ARCHS=                ${GCC3_ARCHS}
 
 DISTNAME=              libtorrent-0.13.4
 EPOCH=                 0
-REVISION=              0
+REVISION=              1
 SHARED_LIBS +=         torrent 21.0    # .18.0
 CATEGORIES=            net devel
 
@@ -32,14 +32,7 @@ CONFIGURE_ARGS=              ${CONFIGURE_SHARED} \
                        --enable-static \
                        --with-kqueue \
                        --without-epoll \
+                       --disable-instrumentation \
                        --disable-debug
-
-.include <bsd.port.arch.mk>
-
-# for 64-bit atomic ops
-.if ${ARCH:Mi386}
-CFLAGS+=       -march=i586 -fomit-frame-pointer
-CXXFLAGS+=     -march=i586 -fomit-frame-pointer
-.endif
 
 .include <bsd.port.mk>

Reply via email to