]> granicus.if.org Git - llvm/commitdiff
Merging r195782:
authorBill Wendling <isanbard@gmail.com>
Wed, 27 Nov 2013 19:42:48 +0000 (19:42 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 27 Nov 2013 19:42:48 +0000 (19:42 +0000)
------------------------------------------------------------------------
r195782 | whitequark | 2013-11-26 12:40:34 -0800 (Tue, 26 Nov 2013) | 1 line

[OCaml] Embed the flags necessary for linking with libLLVM.so into .cmxa files
------------------------------------------------------------------------

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

bindings/ocaml/Makefile.ocaml

index 98e5be9cbb02508898d8526eaf39527933a4b8f3..f7ee43b8f20f533b86053b054ac6f32b36367099 100644 (file)
@@ -89,6 +89,7 @@ endif
 ifdef OCAMLSTUBS
 Archive.CMXA := $(strip $(OCAMLOPT) -a $(patsubst %,-cclib %, \
                                     $(LLVMLibsOptions) -l$(LIBRARYNAME)) \
+                                    -cclib -L$(SharedLibDir) \
                                     $(OCAMLDEBUGFLAG) -o)
 else
 Archive.CMXA := $(strip $(OCAMLOPT) -a $(OCAMLAFLAGS) $(OCAMLDEBUGFLAG) -o)