Patch by Erick Tryzelaar!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48150
91177308-0d34-0410-b5e6-
96231b3b80d8
# Tools
OCAMLCFLAGS += -I $(OcamlDir) -I $(ObjDir)
# Tools
OCAMLCFLAGS += -I $(OcamlDir) -I $(ObjDir)
OCAMLAFLAGS += $(patsubst %,-cclib %, \
$(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
$(shell $(LLVM_CONFIG) --ldflags)) \
$(UsedLibs))
OCAMLAFLAGS += $(patsubst %,-cclib %, \
$(filter-out -L$(LibDir),-l$(LIBRARYNAME) \
$(shell $(LLVM_CONFIG) --ldflags)) \
$(UsedLibs))
+else
+OCAMLAFLAGS += $(patsubst %,-cclib %, \
+ $(filter-out -L$(LibDir),$(shell $(LLVM_CONFIG) --ldflags)) \
+ $(UsedLibs))
+endif
# -g was introduced in 3.10.0.
#ifneq ($(ENABLE_OPTIMIZED),1)
# -g was introduced in 3.10.0.
#ifneq ($(ENABLE_OPTIMIZED),1)
##===- Build static library from C sources --------------------------------===##
##===- Build static library from C sources --------------------------------===##
all-local:: $(LibraryA)
clean-local:: clean-a
install-local:: install-a
all-local:: $(LibraryA)
clean-local:: clean-a
install-local:: install-a
uninstall-a::
$(Echo) "Uninstalling $(DestA)"
-$(Verb) $(RM) -f $(DestA)
uninstall-a::
$(Echo) "Uninstalling $(DestA)"
-$(Verb) $(RM) -f $(DestA)
##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===##
##===- Deposit dependent libraries adjacent to Ocaml libs -----------------===##