git: 649ad6cbb1af - main - devel/ocaml-ppx_sexp_conv: fix build on powerpc

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

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

commit 649ad6cbb1af03c24e1eeb5c73516cda526b3e49
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-19 11:17:14 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-22 11:25:00 +0000

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

diff --git a/devel/ocaml-ppx_sexp_conv/Makefile b/devel/ocaml-ppx_sexp_conv/Makefile
index c773dff29fbf..6effe99a7a77 100644
--- a/devel/ocaml-ppx_sexp_conv/Makefile
+++ b/devel/ocaml-ppx_sexp_conv/Makefile
@@ -32,6 +32,12 @@ OPTIONS_DEFINE=	DOCS
 
 SA_DIR=		${LOCALBASE}/${OCAML_SITELIBDIR}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS=	yes
+.endif
+
 post-install:
 	@${STRIP_CMD} \
 		${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/ppx_sexp_conv/expander/ppx_sexp_conv_expander.cmxs \