libatomic_ops: build fix for netbsd/sparc, which might be sparc v8.

from Tobias Ulmer in PR pkg/53570
This commit is contained in:
maya 2018-09-18 03:42:07 +00:00
parent 9a2073d1c6
commit d3eded16e8

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2018/08/16 10:13:30 adam Exp $
# $NetBSD: Makefile,v 1.18 2018/09/18 03:42:07 maya Exp $
DISTNAME= libatomic_ops-7.6.6
CATEGORIES= devel
@ -19,4 +19,8 @@ TEST_TARGET= check
INSTALL_MAKE_FLAGS= pkgdatadir=${PREFIX}/share/doc/libatomic_ops
.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc)
CPPFLAGS+= -DAO_NO_SPARC_V9=1
.endif
.include "../../mk/bsd.pkg.mk"