git: ce5e8fc8d46e - main - devel/ocaml-topkg: fix build on powerpc

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

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

commit ce5e8fc8d46e7cdb09b73b7dbf9c4a9570d010fb
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-19 11:53:31 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-22 11:25:01 +0000

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

diff --git a/devel/ocaml-topkg/Makefile b/devel/ocaml-topkg/Makefile
index 96f595db4254..a4e0adb4c0f8 100644
--- a/devel/ocaml-topkg/Makefile
+++ b/devel/ocaml-topkg/Makefile
@@ -19,6 +19,12 @@ USES=		ocaml:findlib tar:tbz
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 do-build:
 	cd ${BUILD_WRKSRC} && ocaml pkg/pkg.ml build