From: Gisle V. <gv...@ya...> - 2016-04-13 06:49:19
|
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. -- --gv |