summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-10-12 19:48:13 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-10-12 19:48:13 +0000
commited29a28464d1b19d3e043a4cf1e95eedca745842 (patch)
tree0a44b2836612f6cbf813b1a8bf1558e67f23d7ca /bindings
parent2e4d675d9382bea5767e3b2f35f0c5a01a15bd7b (diff)
downloadllvm-ed29a28464d1b19d3e043a4cf1e95eedca745842.tar.gz
llvm-ed29a28464d1b19d3e043a4cf1e95eedca745842.tar.bz2
llvm-ed29a28464d1b19d3e043a4cf1e95eedca745842.tar.xz
Fix ocaml bindings for picky linkers. :)
Thanks to Török Edvin for helping to track this down. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/ocaml/Makefile.ocaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml
index fb03b1a3e2..fa03c63f32 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)