git: c25d18bb3d01 - main - devel/ocaml-camljava: fix build on powerpc

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

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

commit c25d18bb3d01ccb3d5f9c1b5af698d292acafac0
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-17 15:51:43 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-17 21:46:04 +0000

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

diff --git a/devel/ocaml-camljava/Makefile b/devel/ocaml-camljava/Makefile
index a00553a96508..b6db42532e30 100644
--- a/devel/ocaml-camljava/Makefile
+++ b/devel/ocaml-camljava/Makefile
@@ -19,6 +19,12 @@ MAKE_ARGS=	-e
 MAKE_ENV+=	CAMLJAVALIB=${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME} \
 		JDKHOME=${JAVA_HOME}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 .include <bsd.port.pre.mk>
 
 .if ${JAVA_PORT_VERSION} >= 11