Hi William,

Such patches should be sent to mailing-list and not private to my
person.  So I forward it to public mailing-list.

I had a short glance about your changes and have some objections to
the '--disable-multilib' option changes in documentation.

JonY  will take care about more detailed review for it.

Regards,
Kai

---------- Forwarded message ----------
From: William
Date: 2012/3/4
Subject: mingw-w64-howto-build.txt.patch
To: Kai Tietz


Hi,
here is some updates for the Howto
Best regards,
William


-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
Index: mingw-w64-howto-build.txt
===================================================================
--- mingw-w64-howto-build.txt	(revision 4814)
+++ mingw-w64-howto-build.txt	(working copy)
@@ -25,6 +25,13 @@
 compilers on Windows using MSYS/MinGW and Cygwin. It can also be adapted
 slightly for building the mingw-w64 cross compiler on Linux.
 
+The mingw-w64 cross compilers consists in a few basic packages, among which
+binutils, gcc, and windows headers, compiled in a special way. Once it is
+operational, it forms the base to compile the packages of your project.
+A collection of packages built on top of mingw-w64 can be found in fedora,
+opensuse. Prebuilt version of mingw-w64 can also be found in the mingw-w64
+website.
+
 For a more advanced guide on building the mingw-w64 cross compiler including
 the optional dependencies, please refer to the "mingw-w64-howto-build-adv.txt"
 guide.
@@ -167,12 +174,26 @@
 
 You have two main choices to make building the cross-compiler toolchain:
 
-1) To build with default standard multilib (allows for building to a 32-bit
-alternate target, using Mingw-w64's lib32), or to disable multilib.  Multilib
-is installed by default, if you don't want it, you have to explicitly disable
-it by passing --disable-multilib to configure, i.e.
-	../path/to/configure --disable-multilib
+1) To build a cross-compiler that will generate 32 bits binaries, 64 bits
+binaries, or that will be multilib enabled (so that the toolchain can target
+both, using Mingw-w64's lib32).
 
+    * 32 bits only : use options such as '--host=i686-w64-mingw32',
+	'--target=i686-w64-mingw32' or '--disable-multilib'
+
+	* 64 bits only : use options such as '--host=x86_64-w64-mingw32',
+	'--target=x86_64-w64-mingw32' or '--disable-multilib'
+
+	* multilib enabled : use options such as '--host=x86_64-w64-mingw32',
+	'--target=x86_64-w64-mingw32','--enable-targets=all','--enable-lib32' or
+	'--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32'
+
+It is recommanded to use the two first options, as the third one will require
+more knowledge to use it properly. In the rest of this howto, examples will be
+provided for the '64 bits only' option and for the 'multilib enabled' option.
+For the '32 bits' option, please replace 'x86_64-w64-mingw32' by
+'i686-w64-mingw32' wherever you see it.
+
 2) Using standard settings of configure, which installs to /usr/local and
 requires no setting changes, or to build to a sysroot you designate. /usr/local
 is universally used as the default install point, and you may wish to keep all
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to