summaryrefslogtreecommitdiff
path: root/net/libtorrent
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2012-07-02 07:01:51 +0000
committertron <tron@pkgsrc.org>2012-07-02 07:01:51 +0000
commit520a5bf39adde1e0e4b913404cf0d936c7df8563 (patch)
tree6cd3bfa972c993c26438283e5cee6d2164ad347b /net/libtorrent
parente9ba24bbdb7e378c7663f953b94ec7f5a12254ff (diff)
downloadpkgsrc-520a5bf39adde1e0e4b913404cf0d936c7df8563.tar.gz
Compile with GCC option "-march=i486" on x86 systems to make the required
function "__sync_bool_compare_and_swap_4" available. This fixes the build of the "rtorrent" package under NetBSD/i386 5.1_STABLE.
Diffstat (limited to 'net/libtorrent')
-rw-r--r--net/libtorrent/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/libtorrent/Makefile b/net/libtorrent/Makefile
index e1c4c396fe8..1be1b392c25 100644
--- a/net/libtorrent/Makefile
+++ b/net/libtorrent/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2012/05/16 17:42:37 tron Exp $
+# $NetBSD: Makefile,v 1.45 2012/07/02 07:01:51 tron Exp $
DISTNAME= libtorrent-0.13.2
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${HOMEPAGE:=downloads/}
@@ -44,6 +45,10 @@ CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \
-fno-inline -fforce-addr
.endif
+.if !empty(CC_VERSION:Mgcc-*) && !empty(MACHINE_ARCH:Mi?86)
+CXXFLAGS+= -march=i486
+.endif
+
.include "../../security/openssl/buildlink3.mk"
.if !exists(${BUILDLINK_PREFIX.openssl}/lib/pkgconfig/openssl.pc)
OPENSSL_CFLAGS= -I${BUILDLINK_PREFIX.openssl}/include