From 5d35f2ce03a20b6e0327db11ab69f462fda1883d Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Tue, 26 Nov 2013 20:40:34 +0000 Subject: [PATCH] [OCaml] Embed the flags necessary for linking with libLLVM.so into .cmxa files llvm-svn: 195782 --- llvm/bindings/ocaml/Makefile.ocaml | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/bindings/ocaml/Makefile.ocaml b/llvm/bindings/ocaml/Makefile.ocaml index 98e5be9cbb02..f7ee43b8f20f 100644 --- a/llvm/bindings/ocaml/Makefile.ocaml +++ b/llvm/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)