Open damiendoligez opened 7 years ago
I think this would make more sense as a parameterized flag e.g. rpath($ORIGIN/../lib)
than a file.
I wrote an overly simple plugin here: https://github.com/hcarty/ocamlbuild-plugins/tree/master/tests/rpath with a parameterized flag.
@hcarty A pull request that adds these tags and a test would be warmly welcome.
I'll hopefully have a chance to look at this next week.
PR transferred from https://caml.inria.fr/mantis/view.php?id=5963 [original reporter: @hcarty]
These are rather straightforward to support with command line flags or a
myocamlbuild.ml
plugin. It would be nice to have more robust support in the ocamlbuild tool itself though. For example, the sample plugin I've included only supports a singlelink.rpath
file. It would be nice to have the name of the file come from the matching executable target (foo.rpath
->foo.native
).An example
myocamlbuild.ml
which:rpath
tag and reads link path information fromlink.rpath
Creates a
static
tag for fully statically linked executables