Skip to content

Conversation

@dra27
Copy link
Owner

@dra27 dra27 commented Mar 9, 2025

No description provided.

dra27 added 2 commits March 9, 2025 16:28
Makefile.config contains copies of PREFIX, BINDIR, LIBDIR and MANDIR
from OCaml's Makefile.config. These values were not actually being used,
and they become much less reliable with Relocatable OCaml. They've
therefore been removed.

OCAML_LIBDIR was previously a copy of LIBDIR from OCaml's
Makefile.config. However, this file is found by running `ocamlc -where`,
which itself _gives_ the value for OCAML_LIBDIR. For Relocatable OCaml,
`ocamlc -where` is guaranteed to be correct, where the LIBDIR value may
not be, so tweak the generation of Makefile.config to use this value
instead.
In configure.make, specifying a path beginning ./ or ../ or
OCAMLBUILD_LIBDIR enabled Relocatable ocamlbuild, as long as the
ocamlbuild binary is being installed in the same directory as the
compiler and the compiler itself is Relocatable OCaml. The relative path
given for OCAMLBUILD_LIBDIR describes how to get from OCaml's Standard
Library to the directory containing the "ocamlbuild" package directory
(in opam, this is just "..").

In this mode, `ocamlbuild -where` is determined relative to the Standard
Library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant