python36: Fix _decimal build on Darwin/aarch64.

This commit is contained in:
jperkin 2021-07-16 09:48:45 +00:00
parent cd160ad5c5
commit 63ae75673b

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.31 2021/02/16 19:39:53 adam Exp $
# $NetBSD: Makefile,v 1.32 2021/07/16 09:48:45 jperkin Exp $
.include "dist.mk"
@ -76,6 +76,11 @@ PLIST.oss= yes
CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include
.endif
# Avoid universal build on macOS/aarch64, _decimal fails.
.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
MAKE_ENV+= PYTHON_DECIMAL_WITH_MACHINE=uint128
.endif
PLIST_VARS+= nis
.for incdir in ${_OPSYS_INCLUDE_DIRS}
. if (exists(${incdir}/rpc/rpc.h) || exists(${incdir}/tirpc/rpc/rpc.h))