From acf0aac0c11a39cde80e2c5298c92ddc6270800e Mon Sep 17 00:00:00 2001 From: Gordon Henriksen Date: Fri, 12 Oct 2007 19:48:13 +0000 Subject: [PATCH] Fix ocaml bindings for picky linkers. :) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Török Edvin for helping to track this down. llvm-svn: 42927 --- bindings/ocaml/Makefile.ocaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml index fb03b1a3e24..fa03c63f326 100644 --- a/bindings/ocaml/Makefile.ocaml +++ b/bindings/ocaml/Makefile.ocaml @@ -38,8 +38,9 @@ endif # Tools OCAMLCFLAGS += -I $(OcamlDir) -I $(ObjDir) OCAMLAFLAGS += $(patsubst %,-cclib %, \ - $(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \ - $(UsedLibs) -l$(LIBRARYNAME)) + $(filter-out -L$(LibDir),-l$(LIBRARYNAME) \ + $(shell $(LLVM_CONFIG) --ldflags)) \ + $(UsedLibs)) Compile.CMI := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) -o) Compile.CMO := $(strip $(OCAMLC) -c $(OCAMLCFLAGS) -o)