summaryrefslogtreecommitdiff
path: root/net
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
commitf4363900a8a1e13afd075f711a54752a6765c3ed (patch)
tree6cd3bfa972c993c26438283e5cee6d2164ad347b /net
parent695790bb11ba31fa309ed090d7c13f4e57288146 (diff)
downloadpkgsrc-f4363900a8a1e13afd075f711a54752a6765c3ed.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')
-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