build libtorrent with -march=i586 -fomit-frame-pointer on i386, to allow
64-bit atomic operations. (insufficient reg's to retain the frame pointer) copy net/rtorrent's BROKEN markers for the remaining arch to libtorrent instead; the actual failures are in the library, but don't show up until attempting to link it. ok tobiasu@ dcoppa@
This commit is contained in:
parent
b70813dce9
commit
bd01930d55
@ -1,12 +1,17 @@
|
||||
# $OpenBSD: Makefile,v 1.40 2015/03/24 13:35:09 dcoppa Exp $
|
||||
# $OpenBSD: Makefile,v 1.41 2015/07/31 16:08:44 sthen Exp $
|
||||
|
||||
COMMENT= BitTorrent library written in C++
|
||||
|
||||
BROKEN-hppa = undefined references to __sync atomic ops
|
||||
BROKEN-mips64 = undefined references to __sync atomic ops
|
||||
BROKEN-sh = undefined references to __sync atomic ops
|
||||
|
||||
# requires C++ tr1 headers
|
||||
NOT_FOR_ARCHS= ${GCC3_ARCHS}
|
||||
|
||||
DISTNAME= libtorrent-0.13.4
|
||||
EPOCH= 0
|
||||
REVISION= 0
|
||||
SHARED_LIBS += torrent 21.0 # .18.0
|
||||
CATEGORIES= net devel
|
||||
|
||||
@ -29,4 +34,12 @@ CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
||||
--without-epoll \
|
||||
--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>
|
||||
|
Loading…
Reference in New Issue
Block a user