com php-src: /guard is also a security flag: win32/build/confutils.js

From: Date: Sat, 07 Jan 2017 01:25:00 +0000
Subject: com php-src: /guard is also a security flag: win32/build/confutils.js
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96585@lists.php.net to get a copy of this message
Commit: f98d8f6c159ddcbc652eaa7f0f6e6a67edf963d5 Author: Anatol Belski <ab@php.net> Sat, 7 Jan 2017 02:25:00 +0100 Parents: 45686180300956756f5d770bb99dda2f2e96a59f Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f98d8f6c159ddcbc652eaa7f0f6e6a67edf963d5 Log: /guard is also a security flag Changed paths: M win32/build/confutils.js Diff: diff --git a/win32/build/confutils.js b/win32/build/confutils.js index d68655b..8eb0c19 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -2856,7 +2856,9 @@ function toolset_setup_common_cflags() ADD_FLAG('CFLAGS', ' /RTC1 '); } else { if (VCVERS >= 1900) { - ADD_FLAG('CFLAGS', "/guard:cf"); + if (PHP_SECURITY_FLAGS == "yes") { + ADD_FLAG('CFLAGS', "/guard:cf"); + } } } @@ -2888,7 +2890,9 @@ function toolset_setup_common_ldlags() if (VS_TOOLSET) { if (VCVERS >= 1900) { - ADD_FLAG('LDFLAGS', "/GUARD:CF"); + if (PHP_SECURITY_FLAGS == "yes") { + ADD_FLAG('LDFLAGS', "/GUARD:CF"); + } } } }

« previous php.cvs (#96585) next »