From 127090dd75530a4e4684cbf775f915010c422bd6 Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Tue, 23 Dec 2014 13:09:59 +0000 Subject: [PATCH 1/1] [OCaml] PR22014: OCaml bindings didn't link to libLLVM-*.so with -Wl,--as-needed Patch by Evangelos Foutras . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224766 91177308-0d34-0410-b5e6-96231b3b80d8 --- bindings/ocaml/Makefile.ocaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml index 5e00cf59c4c..ac719de3a5b 100644 --- a/bindings/ocaml/Makefile.ocaml +++ b/bindings/ocaml/Makefile.ocaml @@ -237,8 +237,8 @@ uninstall-local:: uninstall-shared $(SharedLib): $(ObjectsO) $(OcamlDir)/.dir $(Echo) "Building $(BuildMode) $(notdir $@)" - $(Verb) $(Link) $(SharedLinkOptions) $(OCAMLRPATH) $(LLVMLibsOptions) \ - -o $@ $(ObjectsO) + $(Verb) $(Link) $(SharedLinkOptions) $(OCAMLRPATH) -o $@ $(ObjectsO) \ + $(LLVMLibsOptions) clean-shared:: -$(Verb) $(RM) -f $(SharedLib) -- 2.34.1