git: 832d5688f656 - main - lang/ott: fix build on powerpc

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

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

commit 832d5688f656c4898a4177b9bc332717949c32c0
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-16 14:55:41 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-17 21:45:46 +0000

    lang/ott: fix build on powerpc
---
 lang/ott/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lang/ott/Makefile b/lang/ott/Makefile
index 52982e8d505d..e022d0717d74 100644
--- a/lang/ott/Makefile
+++ b/lang/ott/Makefile
@@ -20,6 +20,12 @@ ALL_TARGET=	world
 
 PLIST_FILES=	bin/ott
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/ott ${STAGEDIR}${PREFIX}/bin