From: Peter Zotov Date: Tue, 23 Dec 2014 13:09:59 +0000 (+0000) Subject: [OCaml] PR22014: OCaml bindings didn't link to libLLVM-*.so with -Wl,--as-needed X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=127090dd75530a4e4684cbf775f915010c422bd6;ds=inline [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 --- 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)