git: 26627706eca8 - main - devel/ocaml-dune: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 31 Dec 2024 14:00:51 UTC
The branch main has been updated by pkubaj:

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

commit 26627706eca89556a52f4734866802f00c5c7623
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-12-31 11:39:14 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-12-31 14:00:00 +0000

    devel/ocaml-dune: fix build on powerpc
    
    cc: error: invalid linker name in argument '-fuse-ld=bfd'
---
 devel/ocaml-dune/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/ocaml-dune/Makefile b/devel/ocaml-dune/Makefile
index 447289167f08..a37188e37d72 100644
--- a/devel/ocaml-dune/Makefile
+++ b/devel/ocaml-dune/Makefile
@@ -28,6 +28,12 @@ DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+LLD_UNSAFE=	yes
+.endif
+
 post-patch:
 # FreeBSD-specific hack, do not nag upstream (for now)
 	@${REINPLACE_CMD} -e '/doc_root = Path.relative/ \