From: Sebastian Bergmann Date: Sun, 20 Nov 2005 17:03:58 +0000 (+0000) Subject: MFB: Use /RTC1 instead of /GZ for MS VisualStudio 2005. X-Git-Tag: RELEASE_2_0_2~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebd645e4383f99c282c380cb8c63f03e6e1feb7e;p=php MFB: Use /RTC1 instead of /GZ for MS VisualStudio 2005. --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 32b447c276..39fe409d99 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -87,12 +87,18 @@ DEFINE("CFLAGS", "/nologo /FD $(BASE_INCLUDES) /D _WINDOWS \ if (VCVERS < 14) { // Enable automatic precompiled headers ADD_FLAG('CFLAGS', ' /YX '); + + // Set some debug/release specific options + ADD_FLAG('CFLAGS', ' /GZ '); } if (VCVERS >= 14) { // fun stuff: MS deprecated ANSI stdio and similar functions // disable annoying warnings ADD_FLAG('CFLAGS', ' /wd4996 '); + + // Set some debug/release specific options + ADD_FLAG('CFLAGS', ' /RTC1 '); } // General link flags @@ -112,7 +118,7 @@ DEFINE("LIBS", "kernel32.lib ole32.lib user32.lib advapi32.lib shell32.lib ws2_3 // Set some debug/release specific options if (PHP_DEBUG == "yes") { - ADD_FLAG("CFLAGS", "/LDd /MDd /Gm /ZI /Od /GZ /D _DEBUG /D ZEND_DEBUG=1"); + ADD_FLAG("CFLAGS", "/LDd /MDd /Gm /ZI /Od /D _DEBUG /D ZEND_DEBUG=1"); ADD_FLAG("LDFLAGS", "/debug"); // Avoid problems when linking to release libraries that use the release // version of the libc