diff options
author | Michal Gorny <mgorny@gentoo.org> | 2017-07-29 06:46:45 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2017-07-29 06:46:45 +0000 |
commit | f2e6bc5c8317e80b1fcc412ef5c0b18d5304388c (patch) | |
tree | 95a173c9d7a243beccc85ed2cfaf79e70c1cd3ef /cmake/modules | |
parent | 10db1a7378a4cb21720c140590e59a98b6ee1917 (diff) | |
download | llvm-f2e6bc5c8317e80b1fcc412ef5c0b18d5304388c.tar.gz |
[OCaml] Install dynamic libraries in 'stubdirs' directory
Install the OCaml dynamic libraries in the 'stubdirs' directory rather
than the llvm subdirectory in order to fix running executables created
by ocamlc. Otherwise, the executables fail to run being unable to locate
the libraries (unless the LLVM directory is explicitly added to
LD_LIBRARY_PATH).
The staging directories are not altered since they work for our
development setup anyway, and installing into two directories would
unnecessarily make the code more complex.
Differential Revision: https://reviews.llvm.org/D35995
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/AddOCaml.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/AddOCaml.cmake b/cmake/modules/AddOCaml.cmake index 1b805c0710a..ef9c8ec6e60 100644 --- a/cmake/modules/AddOCaml.cmake +++ b/cmake/modules/AddOCaml.cmake @@ -199,7 +199,7 @@ function(add_ocaml_library name) PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE - DESTINATION "${LLVM_OCAML_INSTALL_PATH}/llvm") + DESTINATION "${LLVM_OCAML_INSTALL_PATH}/stublibs") foreach( install_file ${install_files} ${install_shlibs} ) get_filename_component(filename "${install_file}" NAME) |