summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2025-01-07 13:32:34 +0100
committerPiotr Kubaj <pkubaj@FreeBSD.org>2025-01-12 22:36:39 +0100
commit0e4238b9f35da4a09b9efb46108d69855a7f92f0 (patch)
tree65a04ef921d46de51f6af13003712a77e313db22
parentlang/gcc14: fix build on powerpc (diff)
databases/ocaml-dbm: fix build on powerpc
-rw-r--r--databases/ocaml-dbm/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/databases/ocaml-dbm/Makefile b/databases/ocaml-dbm/Makefile
index 09a0c2f39c45..736c0aaa9966 100644
--- a/databases/ocaml-dbm/Makefile
+++ b/databases/ocaml-dbm/Makefile
@@ -21,6 +21,12 @@ HAS_CONFIGURE= yes
MAKE_ENV+= LIBDIR="${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/dbm" \
STUBLIBDIR="${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/dbm"
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USE_BINUTILS= yes
+.endif
+
post-patch:
@${REINPLACE_CMD} \
-E 's/^(LIBDIR|STUBLIBDIR)=/\1?=/' ${WRKSRC}/Makefile