Add instructions for MINGW, contributed by Henrik Bach
authorChris Lattner <sabre@nondot.org>
Wed, 9 Feb 2005 20:43:48 +0000 (20:43 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 9 Feb 2005 20:43:48 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20092 91177308-0d34-0410-b5e6-96231b3b80d8

docs/GettingStarted.html

index 40fdf4a08fc293b060ef9286af420f2b8cbd6a3c..df1a7d6d15c69d56790c2b900fafeb432df0d053 100644 (file)
@@ -236,6 +236,11 @@ software you will need.</p>
   <td>x86<sup>1</sup></td>
   <td>GCC 3.4.X, binutils 2.15</td>
 </tr>
+<tr>
+  <td>MinGW/Win32</td>
+  <td>x86<sup>1</sup><sup>6</sup></td>
+  <td>GCC 3.4.X, binutils 2.15</td>
+</tr>
 <tr>
   <td>Linux</td>
   <td>amd64<sup>3</sup></td>
@@ -254,7 +259,7 @@ software you will need.</p>
 <tr>
   <td>Windows</td>
   <td>x86<sup>1</sup></td>
-  <td>Visual Studio .NET<sup>4,5</sup>, MinGW</td>
+  <td>Visual Studio .NET<sup>4,5</sup></td>
 <tr>
   <td>AIX<sup>3,4</sup></td>
   <td>PowerPC</td>
@@ -274,6 +279,17 @@ Notes:<br>
 <sup>3</sup> No native code generation<br>
 <sup>4</sup> Build is not complete: one or more tools don't link<br>
 <sup>5</sup> The GCC-based C/C++ frontend does not build<br>
+<sup>6</sup> The port is done using the MSYS shell. 
+Download (from http://www.mingw.org/MinGWiki/) and install 
+bison (excl. M4.exe) and flex in that order. 
+Build binutils 2.15 from source if necessary.
+If you want to compile the Cfrontend then upgrade to texinfo 4.5+ from source.
+If you need to create a library for an MS dll do these three steps:
+1) pexports /C/WINNT/SYSTEM32/file.dll | sed "s/^_//" > /C/MinGW/lib/file.def 
+2) Edit file and append @&lt;ordinal&gt; to the missing function name
+3) dlltool.exe -k -d /C/MinGW/lib/file.def -l /C/MinGW/lib/libfile.a.
+Add in .profile: export CPPFLAGS="-D__MINGW -DLLVM_ON_WIN32=1"
+<br>
 </p>
 
 <p>Note that you will need about 1-3 GB of space for a full LLVM build in Debug