pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/mono Require -march=i586 on i386 for gcc atomic b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/11f098715c27
branches:  trunk
changeset: 652026:11f098715c27
user:      kefren <kefren%pkgsrc.org@localhost>
date:      Fri May 22 10:21:03 2015 +0000

description:
Require -march=i586 on i386 for gcc atomic builtins. Fixes build on i386

diffstat:

 lang/mono/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r ff36b82e5e08 -r 11f098715c27 lang/mono/Makefile
--- a/lang/mono/Makefile        Fri May 22 09:21:20 2015 +0000
+++ b/lang/mono/Makefile        Fri May 22 10:21:03 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.156 2015/05/21 20:03:23 kefren Exp $
+# $NetBSD: Makefile,v 1.157 2015/05/22 10:21:03 kefren Exp $
 
 DISTNAME=      mono-4.0.1
 CATEGORIES=    lang
@@ -155,6 +155,12 @@
 PLIST.monodoc=         yes
 .endif
 
+.if ${MACHINE_ARCH:M*i[34]86*}
+# for gcc byte atomic builtins
+GNU_ARCH.i386=         i586
+CFLAGS+=               -march=i586
+.endif
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/data/net_4_5/DefaultWsdlHelpGenerator.aspx \
                ${DESTDIR}${EGDIR}/4.5/DefaultWsdlHelpGenerator.aspx



Home | Main Index | Thread Index | Old Index