You can setup wrapper scripts to do this sort of thing. Many projects take
this approach. Personally I prefer doing this and being able to use
multilib toolchains, but each to their own!

Sample contents would be something like:

#!/bin/bash
exec /mingw/bin/windres -F pe-i386 "${@}"



On Tue, Jun 4, 2013 at 9:08 AM, Ruben Van Boxem <vanboxem.ru...@gmail.com>wrote:

> 2013/6/4 zhangxinghai <zxh19750...@163.com>
>
>>  hello
>> I find  there is no way to control the output file format of windres
>> directly when I build wx.
>> If I use mingw32-make under cmd,I must manually modify makefile.gcc,add
>> rcflags to
>> every windres command.
>> If I use msys,I also have no way to directly do that using configure,
>>  ../../configure  --host=i686-w64-mingw32 --enable-shared --disable-debug
>> --disable-monolithic
>> --enable-unicode CXXFLAGS="-pipe -m32 fno-keep-inline-dllexport -Os"
>> LDFLAGS=-m32 CFLAGS=-m32
>> RCFLAGS="-F pe-i386"
>> the basedll_version_rc.o's format is pe-x86-64,I can not find any windres
>> flag in that make file controlling
>> file format.So I think I must manually modify makefile .
>> It is strange that RCFLAGS is not the standard flag in gcc like
>> CXXFLAGS,LDFLAGS,CFLAGS etc,why Wx omit this flag?
>> Or may be another method to reach the same result
>> Thanks
>>
>
> This is one of the reasons I am against multilib GCC: build systems don't
> know how to handle every tiny detail.
>
> I would strongly suggest using two seperate toolchains for 32 and 64-bit,
> which removes the problem, as everything will do the correct thing. No need
> for -m32 added everywhere, or anything else like RCFLAGS.
>
> Ruben
>
>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> How ServiceNow helps IT people transform IT departments:
>> 1. A cloud service to automate IT design, transition and operations
>> 2. Dashboards that offer high-level views of enterprise services
>> 3. A single system of record for all IT processes
>> http://p.sf.net/sfu/servicenow-d2d-j
>> _______________________________________________
>> Mingw-w64-public mailing list
>> Mingw-w64-public@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>>
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to