git: 2c22194b9541 - main - devel/ocaml-stdio: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 22 Jan 2025 11:27:36 UTC
The branch main has been updated by pkubaj:

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

commit 2c22194b9541bcbe1ab178ef74637a4a753efdfe
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-19 11:58:04 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-22 11:25:06 +0000

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

diff --git a/devel/ocaml-stdio/Makefile b/devel/ocaml-stdio/Makefile
index d952cc6c0729..b46755a06374 100644
--- a/devel/ocaml-stdio/Makefile
+++ b/devel/ocaml-stdio/Makefile
@@ -25,6 +25,12 @@ OPTIONS_DEFINE=	DOCS
 
 SA_DIR=		${LOCALBASE}/${OCAML_SITELIBDIR}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} \
 		-e "s/(lang dune 3.11)/(lang dune 3.7)/" \