From f22eed7f5773652fd5ad8853960163149fdf458a Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 17 Apr 2016 19:10:01 +0000 Subject: [PATCH] use specific target flags with windres (pe-i386/pe-x86-64 for w32/w64), just in case the compiler toolchain is a multilib one. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1298 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/Makefile.w32 | 2 +- Quake/Makefile.w64 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Quake/Makefile.w32 b/Quake/Makefile.w32 index 9af0d46e..8cd9469c 100644 --- a/Quake/Makefile.w32 +++ b/Quake/Makefile.w32 @@ -183,7 +183,7 @@ DEFAULT_TARGET := quakespasm.exe %.o: %.c $(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $^ %.res: ../Windows/%.rc - $(WINDRES) --output-format=coff -I../Windows -o $@ $^ + $(WINDRES) -I../Windows --output-format=coff --target=pe-i386 -o $@ $^ # ---------------------------------------------------------------------------- # objects diff --git a/Quake/Makefile.w64 b/Quake/Makefile.w64 index a4de7424..bffce7ed 100644 --- a/Quake/Makefile.w64 +++ b/Quake/Makefile.w64 @@ -181,7 +181,7 @@ DEFAULT_TARGET := quakespasm.exe %.o: %.c $(CC) $(DFLAGS) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $^ %.res: ../Windows/%.rc - $(WINDRES) --output-format=coff -I../Windows -o $@ $^ + $(WINDRES) -I../Windows --output-format=coff --target=pe-x86-64 -o $@ $^ # ---------------------------------------------------------------------------- # objects