]> granicus.if.org Git - llvm/commit
Merging r195834:
authorBill Wendling <isanbard@gmail.com>
Wed, 27 Nov 2013 19:51:24 +0000 (19:51 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 27 Nov 2013 19:51:24 +0000 (19:51 +0000)
commit3d52c077a914d0f0818f3a1eab41ed84ae3b346a
tree2df13bb8834187ab3319669d3b0990cd3b9797d7
parent4684d18578907fa8b1434ef2784d9233a189806c
Merging r195834:
------------------------------------------------------------------------
r195834 | whitequark | 2013-11-27 03:03:18 -0800 (Wed, 27 Nov 2013) | 11 lines

[OCaml] Embed rpath into stub libraries and native executables

This commit embeds a set of linker flags with hardcoded paths to
the LLVM shared library on --enable-shared builds into .cmxa files
and stub dynamic libraries. This solution closely follows existing
rules for rpath in the LLVM tools, which had to be modified because
of differences in toolchain.

Without this patch, OCaml tests as well as opam bindings broke,
as neither of those updates LD_LIBRARY_PATH to include
the $prefix/lib directory.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195873 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/ocaml/Makefile.ocaml