[PATCH] D35995: [OCaml] Install dynamic libraries in 'stubdirs' directory
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 07:08:57 PDT 2017
mgorny created this revision.
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.
Repository:
rL LLVM
https://reviews.llvm.org/D35995
Files:
cmake/modules/AddOCaml.cmake
Index: cmake/modules/AddOCaml.cmake
===================================================================
--- cmake/modules/AddOCaml.cmake
+++ cmake/modules/AddOCaml.cmake
@@ -199,7 +199,7 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35995.108647.patch
Type: text/x-patch
Size: 591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170728/74247802/attachment.bin>
More information about the llvm-commits
mailing list