From f83d4293bdf8bd8b33252ac56d30717221eb95ed Mon Sep 17 00:00:00 2001 From: katjav Date: Sun, 21 Jan 2018 11:42:55 +0100 Subject: [PATCH] Introduce remainder architecture category for Windows And explicitly specify Intel 32 bit architectures, where 'mingw32' is included to support MSYS1. --- Makefile.pdlibbuilder | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.pdlibbuilder b/Makefile.pdlibbuilder index 8092166..8bf8328 100644 --- a/Makefile.pdlibbuilder +++ b/Makefile.pdlibbuilder @@ -596,12 +596,14 @@ endif # TODO: decide whether -mms-bitfields should be specified. ifeq ($(system), Windows) - ifeq ($(findstring $(target.arch), x86_64), $(target.arch)) + cpp.flags := -DMSW -DNT + ifeq ($(findstring $(target.arch), i%86 mingw32), $(target.arch)) + arch.c.flags := -march=pentium4 -msse -msse2 -mfpmath=sse + else ifeq (x86_64, $(target.arch)) cpp.flags := -DMSW -DNT -DPD_LONGINTTYPE=__int64 arch.c.flags := -march=core2 -msse -msse2 -mfpmath=sse else - cpp.flags := -DMSW -DNT - arch.c.flags := -march=pentium4 -msse -msse2 -mfpmath=sse + arch.c.flags = endif extension = dll c.flags :=