aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.ocaml.mk
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-06-11 01:40:09 +0000
committerJohn Marino <marino@FreeBSD.org>2014-06-11 01:40:09 +0000
commit0ab15ba065248274437050aaeee998aee508599d (patch)
treed15efde7ef73a47bdfed7bc434351702b3b218c4 /Mk/bsd.ocaml.mk
parent427d2164d6396c4da13235cb3c0163769796ca88 (diff)
downloadports-0ab15ba065248274437050aaeee998aee508599d.tar.gz
ports-0ab15ba065248274437050aaeee998aee508599d.zip
Notes
Diffstat (limited to 'Mk/bsd.ocaml.mk')
-rw-r--r--Mk/bsd.ocaml.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/Mk/bsd.ocaml.mk b/Mk/bsd.ocaml.mk
index b098b2c8dfb9..e0515cbbe557 100644
--- a/Mk/bsd.ocaml.mk
+++ b/Mk/bsd.ocaml.mk
@@ -78,6 +78,16 @@ OCAML_EXAMPLESDIR= ${PREFIX}/share/examples/ocaml
#
OCAML_LDCONF?= ${OCAML_LIBDIR}/ld.conf
+# ocaml-findlib-1.4.1_1 wants to edit our ld.conf file, which does not
+# work well with staging.
+.if defined(USE_OCAML_LDCONFIG)
+. if !target(ocaml-ldconfig)
+. if !defined(NO_STAGE)
+OCAMLFIND_LDCONF?= /dev/null
+. endif
+. endif
+.endif
+
OCAMLFIND_DESTDIR?= ${PREFIX}/${OCAML_SITELIBDIR}
OCAMLFIND_LDCONF?= ${PREFIX}/${OCAML_LDCONF}