[llvm] r224766 - [OCaml] PR22014: OCaml bindings didn't link to	libLLVM-*.so with -Wl, --as-needed
    Peter Zotov 
    whitequark at whitequark.org
       
    Tue Dec 23 05:10:00 PST 2014
    
    
  
Author: whitequark
Date: Tue Dec 23 07:09:59 2014
New Revision: 224766
URL: http://llvm.org/viewvc/llvm-project?rev=224766&view=rev
Log:
[OCaml] PR22014: OCaml bindings didn't link to libLLVM-*.so with -Wl,--as-needed
Patch by Evangelos Foutras <evangelos at foutrelis.com>.
Modified:
    llvm/trunk/bindings/ocaml/Makefile.ocaml
Modified: llvm/trunk/bindings/ocaml/Makefile.ocaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/Makefile.ocaml?rev=224766&r1=224765&r2=224766&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/Makefile.ocaml (original)
+++ llvm/trunk/bindings/ocaml/Makefile.ocaml Tue Dec 23 07:09:59 2014
@@ -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)
    
    
More information about the llvm-commits
mailing list