From 8ccb87fa62ba1fe4a56a98ce2c56007a6c5d06ee Mon Sep 17 00:00:00 2001
From: Chris Lattner
Date: Wed, 9 Feb 2005 20:43:48 +0000
Subject: [PATCH] Add instructions for MINGW, contributed by Henrik Bach
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20092 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/GettingStarted.html | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/docs/GettingStarted.html b/docs/GettingStarted.html
index 40fdf4a08fc..df1a7d6d15c 100644
--- a/docs/GettingStarted.html
+++ b/docs/GettingStarted.html
@@ -236,6 +236,11 @@ software you will need.
x861 |
GCC 3.4.X, binutils 2.15 |
+
+ MinGW/Win32 |
+ x8616 |
+ GCC 3.4.X, binutils 2.15 |
+
Linux |
amd643 |
@@ -254,7 +259,7 @@ software you will need.
Windows |
x861 |
- Visual Studio .NET4,5, MinGW |
+ Visual Studio .NET4,5 |
AIX3,4 |
PowerPC |
@@ -274,6 +279,17 @@ Notes:
3 No native code generation
4 Build is not complete: one or more tools don't link
5 The GCC-based C/C++ frontend does not build
+6 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 @<ordinal> 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"
+
Note that you will need about 1-3 GB of space for a full LLVM build in Debug