<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Fix bug 12795 (<a class="moz-txt-link-freetext" href="http://llvm.org/bugs/show_bug.cgi?id=12795">http://llvm.org/bugs/show_bug.cgi?id=12795</a>)<a
href="cid:part1.08000402.04090405@gmail.com"
moz-do-not-send="false"></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>