changeset 9032:adc49d072b7c

8212110: Build of saproc.dll broken on Windows 32 bit after JDK-8210647 Reviewed-by: erikj, akasko
author sgehwolf
date Fri, 09 Nov 2018 12:39:09 +0100
parents 21884257c797
children 6ce4101edc7a
files make/windows/makefiles/sa.make
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/windows/makefiles/sa.make	Fri Nov 09 10:38:30 2018 +0100
+++ b/make/windows/makefiles/sa.make	Fri Nov 09 12:39:09 2018 +0100
@@ -101,6 +101,9 @@
 
 !if "$(BUILD_FLAVOR)" == "debug"
 SA_EXTRA_CFLAGS = -Od -D "_DEBUG"
+!if "$(BUILDARCH)" == "i486"
+SA_EXTRA_CFLAGS = $(SA_EXTRA_CFLAGS) -RTC1
+!endif
 !elseif "$(BUILD_FLAVOR)" == "fastdebug"
 SA_EXTRA_CFLAGS = -O2 -D "_DEBUG"
 !else
@@ -117,9 +120,11 @@
 SA_LD_FLAGS = bufferoverflowU.lib
 !endif
 !else
-SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 -Gm $(GX_OPTION) -D "WIN32" -D "_WINDOWS" -D "_CONSOLE" -D "_MBCS" -YX -FD -GZ -c
+SA_CFLAGS = -nologo $(MS_RUNTIME_OPTION) -W3 -Gm $(GX_OPTION) -D "WIN32" -D "_WINDOWS" -D "_CONSOLE" -D "_MBCS" -YX -FD -c
 !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
-SA_CFLAGS = $(SA_CFLAGS) -ZI
+# -ZI is incompatible with -O2 used for release/fastdebug builds.
+# Using -Zi instead.
+SA_CFLAGS = $(SA_CFLAGS) -Zi
 !endif
 !endif
 !if "$(MT)" != ""