From 46ae340f249465b94c42e9836b9d94d74c965361 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Tue, 18 Nov 2014 13:44:03 +0100 Subject: build: in Makefile.m32 pass -F flag to windres. --- src/Makefile.m32 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile.m32 b/src/Makefile.m32 index ddfed417a..614c2b637 100644 --- a/src/Makefile.m32 +++ b/src/Makefile.m32 @@ -81,7 +81,13 @@ endif LDFLAGS = -s AR = $(CROSSPREFIX)ar RC = $(CROSSPREFIX)windres -RCFLAGS = --include-dir=$(PROOT)/include -O COFF -i +RCFLAGS = --include-dir=$(PROOT)/include -O COFF +ifeq ($(ARCH),w64) +RCFLAGS += -F pe-x86-64 +else +RCFLAGS += -F pe-i386 +endif +STRIP = $(CROSSPREFIX)strip -g # We may need these someday # PERL = perl @@ -320,7 +326,7 @@ tool_hugehelp.c: $(CC) $(INCLUDES) $(CFLAGS) -c $< %.res: %.rc - $(RC) $(RCFLAGS) $< -o $@ + $(RC) $(RCFLAGS) -i $< -o $@ clean: ifeq "$(wildcard tool_hugehelp.c.cvs)" "tool_hugehelp.c.cvs" -- cgit v1.2.3