[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)
commitf21b6c84f59623212d8a0511acb37ba6cef4f2f3
tree4a304f7bfe0441b79d73c54d14170d573ab883b4
parent8058fc1d73284cafe5e130f7cd433b0e988c528f
[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.

llvm-svn: 221139
llvm/bindings/ocaml/Makefile.ocaml
llvm/test/lit.cfg