# HG changeset patch # User erikj # Date 1381419677 -3600 # Node ID 01fe4d85c01cc7b7adf1f019f3a8eaad9b687026 # Parent fa3171a9cec3405159e6e66f857b46b15e0548b0 8015614: Update build settings Reviewed-by: tbell, dholmes, ahgross diff -r fa3171a9cec3 -r 01fe4d85c01c make/windows/makefiles/compile.make --- a/make/windows/makefiles/compile.make Thu Sep 19 00:00:25 2013 +0100 +++ b/make/windows/makefiles/compile.make Thu Oct 10 16:41:17 2013 +0100 @@ -140,6 +140,7 @@ !if "$(MSC_VER)" == "1600" COMPILER_NAME=VS2010 !endif +SAFESEH_FLAG = /SAFESEH !endif # By default, we do not want to use the debug version of the msvcrt.dll file @@ -170,6 +171,7 @@ PRODUCT_OPT_OPTION = /O2 /Oy- FASTDEBUG_OPT_OPTION = /O2 /Oy- DEBUG_OPT_OPTION = /Od +SAFESEH_FLAG = /SAFESEH !endif !if "$(COMPILER_NAME)" == "VS2005" @@ -186,6 +188,7 @@ # Manifest Tool - used in VS2005 and later to adjust manifests stored # as resources inside build artifacts. MT=mt.exe +SAFESEH_FLAG = /SAFESEH !endif !if "$(COMPILER_NAME)" == "VS2008" @@ -209,8 +212,8 @@ # as resources inside build artifacts. MT=mt.exe !if "$(BUILDARCH)" == "i486" -LD_FLAGS = /SAFESEH $(LD_FLAGS) -!endif +LD_FLAGS = $(SAFESEH_FLAG) $(LD_FLAGS) +SAFESEH_FLAG = /SAFESEH !endif # Compile for space above time. diff -r fa3171a9cec3 -r 01fe4d85c01c make/windows/makefiles/sa.make --- a/make/windows/makefiles/sa.make Thu Sep 19 00:00:25 2013 +0100 +++ b/make/windows/makefiles/sa.make Thu Oct 10 16:41:17 2013 +0100 @@ -107,6 +107,9 @@ !if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1" SA_LFLAGS = $(SA_LFLAGS) /map /debug !endif +!if "$(BUILDARCH)" == "i486" +SA_LFLAGS = $(SAFESEH_FLAG) $(SA_LFLAGS) +!endif # Note that we do not keep sawindbj.obj around as it would then # get included in the dumpbin command in build_vm_def.sh