Thanks to you two. This seems to work, except I realize neither 
Win-Builds nor Msys2 seems to be able to "cross-compiling" (I mean I 
need to switch to the 32-bits versions to build the 32-bits objects and 
executable, so in these conditions my compiler options are useless).

Le 13/04/2016 08:49, Gisle Vanem a écrit :
> Julien Darthenay wrote:
>
>> But I am unable to find the
>> options to use with "windres" to build the resource object file. Are
>> there any "windres" option to use to target 64-bit and 32-bit ?
> What I do in such case is:
>
> RCFLAGS = -O COFF
>
> ifeq ($(BUILD_64BIT),1)
>    RCFLAGS += --target=pe-x86-64
> else
>    RCFLAGS += --target=pe-i386
> endif
>
> $(OBJ_DIR)/libcurl.res: libcurl.rc ../include/curl/curlver.h
>       windres $(RCFLAGS) -o $@ -i libcurl.rc
>
> (taken from a makefile to build libcurl.dll).
>
> I'm not sure if 'gcc -arch=xx' can be made to have any effect
> on creating a .res-file. Better do that explicitly.
>


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to