2010/9/5 İsmail Dönmez <ism...@namtrac.org>:
> Hi,
>
> On Sun, Sep 5, 2010 at 11:26 PM, Kai Tietz <ktiet...@googlemail.com> wrote:
>> Well, as you see in your dump of ld "i386pep" which means that ld
>> supports x86_64 output. In ld (and some other tools of binutils) the
>> naming of target is different.
>>
>> So you should have a binutils version which is capable to build 32-bit
>> and 64-bit code.
>
> Ok, then it shouldn't fail right?
>
>> See 
>> http://sourceforge.net/apps/trac/mingw-w64/wiki/Answer%20Multilib%20Toolchain
>> for some FAQ about this subject.
>
> Do I need --enable-multilib --enable-version-specific-runtime-libs,
> because 
> http://sourceforge.net/apps/trac/mingw-w64/wiki/Cross%20Win32%20and%20Win64%20compiler
> does not mention it. Also --sysroot is mandatory for multilib?

Well, for multilib you get two different sets of runtime-libraries
installed (by gcc and by our crt). Therefore to avoid conflicts
between those two sets we recomment to use
--enable-version-specific-runtime-libs. The --enable-multilib isn't
absolutely necessary as it is on by default for gcc (at least for
4.5.1 and higher), but for completeness I would always specify it on
configure line.
It has some advantages to use sysroot (and this option we describe in
single targeted cross-compiler howto, too), as it leads in combination
with --prefix to a relocatable toolchain. This means, you can copy the
sysroot-folder (the past folder specified - eg
--with-sysroot=/opt/mingww64, then mingww64 is the sysroot-folder) to
any location without the need of rebuilding it.

Kai



-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to