summaryrefslogtreecommitdiffstats
path: root/llvm/bindings
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2013-11-26 20:40:34 +0000
committerPeter Zotov <whitequark@whitequark.org>2013-11-26 20:40:34 +0000
commit5d35f2ce03a20b6e0327db11ab69f462fda1883d (patch)
treec749c4a0807881efd5b358e10b335e00b08caf09 /llvm/bindings
parent3aeb1d08579c11a5fbf09dfbb2ff19a91e32a5ef (diff)
downloadbcm5719-llvm-5d35f2ce03a20b6e0327db11ab69f462fda1883d.tar.gz
bcm5719-llvm-5d35f2ce03a20b6e0327db11ab69f462fda1883d.zip
[OCaml] Embed the flags necessary for linking with libLLVM.so into .cmxa files
llvm-svn: 195782
Diffstat (limited to 'llvm/bindings')
-rw-r--r--llvm/bindings/ocaml/Makefile.ocaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/bindings/ocaml/Makefile.ocaml b/llvm/bindings/ocaml/Makefile.ocaml
index 98e5be9cbb0..f7ee43b8f20 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)
OpenPOWER on IntegriCloud