MFB: Use /RTC1 instead of /GZ for MS VisualStudio 2005.

This commit is contained in:
Sebastian Bergmann 2005-11-20 17:03:58 +00:00
parent 57deca0c8f
commit ebd645e438

View File

@ -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