[OCaml] Avoid embedding absolute paths into executables.
authorPeter Zotov <whitequark@whitequark.org>
Mon, 3 Nov 2014 09:51:34 +0000 (09:51 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Mon, 3 Nov 2014 09:51:34 +0000 (09:51 +0000)
commitcf0fe98b05f74601867a49f65e747e5f5ab0e8d5
tree623b6a900574fff859d5cfedd2bb1b9595c2b26a
parent29e82393abf3d8f578c6719af03b596858761a4f
[OCaml] Avoid embedding absolute paths into executables.

Bindings built out-of-tree, e.g. via OPAM, should append
a line to META.llvm like the following:

linkopts = "-cclib -L$libdir -cclib -Wl,-rpath,$libdir"

where $libdir is the lib/ directory where LLVM libraries are
installed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221139 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/ocaml/Makefile.ocaml
test/lit.cfg