git: 6458c346b8fb - main - textproc/ocaml-yojson: fix build on powerpc

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

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

commit 6458c346b8fbd08d459cfc6251cd4e8219288f47
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-16 09:35:00 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-17 21:45:07 +0000

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

diff --git a/textproc/ocaml-yojson/Makefile b/textproc/ocaml-yojson/Makefile
index e092811b1ff8..7e5c401551f1 100644
--- a/textproc/ocaml-yojson/Makefile
+++ b/textproc/ocaml-yojson/Makefile
@@ -25,6 +25,12 @@ OPTIONS_DEFINE=	DOCS
 
 DUNE_INSTALL_TARGETS=	${OCAML_PACKAGES}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 post-install:
 	@${STRIP_CMD} \
 		${STAGEDIR}${PREFIX}/bin/ydump \