git: ed10c7be06d7 - main - x11-toolkits/ocaml-labltk: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 Dec 2024 14:00:54 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ed10c7be06d7eb33a35636b1bf29e2d1ef25f4e8
commit ed10c7be06d7eb33a35636b1bf29e2d1ef25f4e8
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-12-31 12:16:26 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-12-31 14:00:05 +0000
x11-toolkits/ocaml-labltk: fix build on powerpc
cc: error: invalid linker name in argument '-fuse-ld=bfd'
---
x11-toolkits/ocaml-labltk/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/x11-toolkits/ocaml-labltk/Makefile b/x11-toolkits/ocaml-labltk/Makefile
index 508f711bb02b..87edccbe0e36 100644
--- a/x11-toolkits/ocaml-labltk/Makefile
+++ b/x11-toolkits/ocaml-labltk/Makefile
@@ -29,6 +29,12 @@ MAKE_JOBS_UNSAFE= yes
ALL_TARGET= all opt
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+LLD_UNSAFE= yes
+.endif
+
post-patch:
@${REINPLACE_CMD} \
-e '/exec $$(INSTALLDIR)/s|$$(INSTALLDIR)|$$(PREFIX)/$$(INSTALLDIR_REL)|g' \