https://bugs.llvm.org/show_bug.cgi?id=34115
Bug ID: 34115
Summary: Fix LLVM_OCAML_OUT_OF_TREE
Product: Build scripts
Version: trunk
Hardware: All
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: cmake
Assignee: unassignedb...@nondot.org
Reporter: jp.depl...@gmail.com
CC: llvm-bugs@lists.llvm.org, mgo...@gentoo.org,
whitequ...@whitequark.org
Created attachment 18944
--> https://bugs.llvm.org/attachment.cgi?id=18944&action=edit
The fix
If OCaml is not installed in the same tree as LLVM (e.g. with OPAM), the build
script doesn't work. Moreover, if SHARED_LIBS is enabled, the resulting binding
won't be dynamically linked.
Here is a patch that tries to fix these two issues.
The patch also fixes the build instructions.
I also tried to allow both static and shared libraries if possible (see OPAM
package) but my level of comprehension of CMake is quite limited so I gave up.
But if anybody have any idea how to do that better, please feel free to discuss
this matter here.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs