Index: math/gmp/Makefile =================================================================== --- math/gmp/Makefile (revision 468668) +++ math/gmp/Makefile (working copy) @@ -11,8 +11,9 @@ LICENSE= LGPL3 -OPTIONS_DEFINE= CPU_OPTS +OPTIONS_DEFINE= CPU_OPTS AVOID_ASM CPU_OPTS_DESC= Enable assembly optimizations for your CPU +AVOID_ASM_DESC= Avoid assembly code that fails compile (arm,arm64) USES= libtool makeinfo tar:xz HAS_CONFIGURE= yes @@ -31,6 +32,10 @@ .include +.if ${PORT_OPTIONS:MAVOID_ASM} +CONFIGURE_ARGS+= --disable-assembly +.endif + .if ! ${PORT_OPTIONS:MCPU_OPTS} CONFIGURE_ARGS+=--build=${CONFIGURE_TARGET} .elif ${ARCH:S/64//} != ${ARCH}