summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2009-09-12 22:53:29 +0000
committerTanya Lattner <tonic@nondot.org>2009-09-12 22:53:29 +0000
commit9e2e5254c2e3dd968fb33f71d7e2281b6c067eaf (patch)
treecae7e562c6d19da049fb88513e996eb217d83cde
parentbf256043daf3f0111bc80bc5d45b2900ce03610c (diff)
downloadllvm-9e2e5254c2e3dd968fb33f71d7e2281b6c067eaf.tar.gz
Merge r81547 from mainline to fix PR4820.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_26@81649 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--bindings/ocaml/Makefile.ocaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml
index d98a489f7c42..c46f6027cf63 100644
--- a/bindings/ocaml/Makefile.ocaml
+++ b/bindings/ocaml/Makefile.ocaml
@@ -31,13 +31,16 @@ PROJ_libocamldir := $(DESTDIR)$(OCAML_LIBDIR)
OcamlDir := $(LibDir)/ocaml
# Info from llvm-config and similar
+ifndef IS_CLEANING_TARGET
ifdef UsedComponents
UsedLibs = $(shell $(LLVM_CONFIG) --libs $(UsedComponents))
UsedLibNames = $(shell $(LLVM_CONFIG) --libnames $(UsedComponents))
endif
+endif
# Tools
OCAMLCFLAGS += -I $(ObjDir) -I $(OcamlDir)
+ifndef IS_CLEANING_TARGET
ifneq ($(ObjectsO),)
OCAMLAFLAGS += $(patsubst %,-cclib %, \
$(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
@@ -48,6 +51,7 @@ OCAMLAFLAGS += $(patsubst %,-cclib %, \
$(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
$(UsedLibs))
endif
+endif
# -g was introduced in 3.10.0.
#ifneq ($(ENABLE_OPTIMIZED),1)