]> granicus.if.org Git - llvm/commit
Merging r309481:
authorHans Wennborg <hans@hanshq.net>
Mon, 31 Jul 2017 17:40:02 +0000 (17:40 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 31 Jul 2017 17:40:02 +0000 (17:40 +0000)
commit2f5b5ca137edd86c3aa5fc93ca1312bce416ec6f
treee11427ce7630c83e96ee13eb5fadd09e7e14d605
parente44c13d6734d94530ad4977f6a2e486fe1fc1a26
Merging r309481:
------------------------------------------------------------------------
r309481 | mgorny | 2017-07-28 23:46:45 -0700 (Fri, 28 Jul 2017) | 13 lines

[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/branches/release_50@309592 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddOCaml.cmake