git: c9e60dafceae - main - devel/ocaml-ulex: fix build on powerpc

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

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

commit c9e60dafceae8c8c1c4e949e64531c6e31495667
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-16 14:56:57 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-17 21:45:48 +0000

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

diff --git a/devel/ocaml-ulex/Makefile b/devel/ocaml-ulex/Makefile
index 4d0ff8ac1e62..e9251cbaf6d0 100644
--- a/devel/ocaml-ulex/Makefile
+++ b/devel/ocaml-ulex/Makefile
@@ -22,6 +22,12 @@ OPTIONS_DEFINE=	DOCS
 
 DOCS_ALL_TARGET=	doc
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e '/^let latin1_sub_lexeme/,+3 \
 		s,^  s,  Bytes.to_string s,' ${WRKSRC}/ulexing.ml