Index: tools/gmp/Makefile =================================================================== RCS file: /cvsroot/src/tools/gmp/Makefile,v retrieving revision 1.5 diff -p -u -r1.5 Makefile --- tools/gmp/Makefile 18 Sep 2021 01:47:10 -0000 1.5 +++ tools/gmp/Makefile 28 Sep 2024 20:11:26 -0000 @@ -9,6 +9,16 @@ CPPFLAGS+= ${HOST_CPPFLAGS} .include "${.CURDIR}/../Makefile.gnuhost" +# GMP uses 8-byte alignment for 16-byte align-requiring things that break +# the build on modern macOS targets, turn off assembly on x86-64 for now. +# https://trac.macports.org/ticket/70859 +.if ${BUILD_OSTYPE} == "Darwin" +BUILD_MACHINE!= uname -m +. if ${BUILD_MACHINE} == "x86_64" +CONFIGURE_ARGS+= --disable-assembly +. endif +.endif + # Don't override CFLAGS and CXXFLAGS, it breaks ABI detection. # PATH needs special treating since "make" tries to expand $PATH # when variable is used.