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

This commit is contained in:
kefren 2015-05-22 10:21:03 +00:00
parent 48b7412cad
commit e6258ad9fd

View file

@ -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 @@ CONFIGURE_ARGS+= --disable-parallel-mark
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