summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bytecomp/dll.ml6
-rwxr-xr-xbyterun/Makefile.common1
2 files changed, 2 insertions, 5 deletions
diff --git a/bytecomp/dll.ml b/bytecomp/dll.ml
index cdc4058900..3dc6eddf75 100644
--- a/bytecomp/dll.ml
+++ b/bytecomp/dll.ml
@@ -128,11 +128,7 @@ let read_ld_conf_contents dir =
List.rev !path
let ld_conf_contents () =
- read_ld_conf_contents Config.standard_library @
- begin match Config.ocaml_library with
- | None -> []
- | Some dir -> read_ld_conf_contents dir
- end
+ read_ld_conf_contents Config.standard_library
(* Split the CAML_LD_LIBRARY_PATH environment variable and return
the corresponding list of directories. *)
diff --git a/byterun/Makefile.common b/byterun/Makefile.common
index 567834727d..a84bd399d5 100755
--- a/byterun/Makefile.common
+++ b/byterun/Makefile.common
@@ -47,6 +47,7 @@ all-runtimed: ocamlrund$(EXE) libcamlrund.$(A)
ld.conf: ../config/Makefile
echo "$(STUBLIBDIR)" > ld.conf
echo "$(LIBDIR)" >> ld.conf
+ -test -f $(OCAMLLIB)/ld.conf && cat $(OCAMLLIB)/ld.conf >> ld.conf
install::
cp ocamlrun$(EXE) $(BINDIR)/jocamlrun$(EXE)