<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Fix <a href="cid:part1.08080402.01000600@googlemail.com"
      moz-do-not-send="false">bug 12795</a> by using .a.o instead of
    .def for the main shared lib (  LLVM-$(LLVMVERSION).dll  )<br>
    when building for host os mingw and host architecture x86_64.<br>
    <br>
    Index: Makefile.rules<br>
    ===================================================================<br>
    --- Makefile.rules    (revision 170207)<br>
    +++ Makefile.rules    (working copy)<br>
    @@ -1128,8 +1128,19 @@<br>
     # Windows<br>
     ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))<br>
     # LLVMLibsOptions is invalidated at processing tools/llvm-shlib.<br>
    +<br>
    +# For x86_64 mingw don't use the native export file<br>
    +# but the static library itself for the main shared library<br>
    +ifeq ($(HOST_ARCH),x86_64)<br>
    +  ifeq ($(HOST_OS),MingW)<br>
    +    ifeq ($(LIBRARYNAME),LLVM-$(LLVMVersion))<br>
    +      SharedLinkOptions += $(ObjDir)/$(notdir
    $(EXPORTED_SYMBOL_<a class="moz-txt-link-freetext" href="FILE:.exports=.a.o">FILE:.exports=.a.o</a>))<br>
    +    endif<br>
    +  endif<br>
    +else<br>
     SharedLinkOptions += $(NativeExportsFile)<br>
     endif<br>
    +endif<br>
     <br>
     endif<br>
     <br>
    <br>
  </body>
</html>