git: aac7ecb0f66f - main - math/ocaml-zarith: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 17 Jan 2025 21:46:57 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aac7ecb0f66f8625ef9e4d2b0b802676b384ca2c

commit aac7ecb0f66f8625ef9e4d2b0b802676b384ca2c
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-16 10:47:36 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-17 21:45:14 +0000

    math/ocaml-zarith: fix build on powerpc
---
 math/ocaml-zarith/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/ocaml-zarith/Makefile b/math/ocaml-zarith/Makefile
index 4e3f49ad32ee..c59054723086 100644
--- a/math/ocaml-zarith/Makefile
+++ b/math/ocaml-zarith/Makefile
@@ -32,6 +32,12 @@ OPTIONS_DEFINE=	DOCS
 
 DOCS_ALL_TARGET=doc
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 post-install:
 	@${STRIP_CMD} \
 		${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/dllzarith.so \