1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Fix ocaml bindings for picky linkers. :)

Thanks to Török Edvin for helping to track this down.

llvm-svn: 42927
This commit is contained in:
Gordon Henriksen 2007-10-12 19:48:13 +00:00
parent d781ed9d21
commit acf0aac0c1

View File

@ -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)