From: Peter Zotov Date: Tue, 26 Nov 2013 20:40:34 +0000 (+0000) Subject: [OCaml] Embed the flags necessary for linking with libLLVM.so into .cmxa files X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=46f89920ce4b22f167841cb1d5d84832d9b6c380;p=oota-llvm.git [OCaml] Embed the flags necessary for linking with libLLVM.so into .cmxa files git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195782 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml index 98e5be9cbb0..f7ee43b8f20 100644 --- a/bindings/ocaml/Makefile.ocaml +++ b/bindings/ocaml/Makefile.ocaml @@ -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)