- Core:
. Fixed bug #78239 (Deprecation notice during string conversion converted to
exception hangs). (Nikita)
+ . Implemented FR #77230 (Support custom CFLAGS and LDFLAGS from environment).
+ (cmb)
- Date:
. Updated timelib to 2018.02. (Derick)
- CTRL+C and CTRL+BREAK on console can be caught by setting a handler function
with sapi_windows_set_ctrl_handler().
+- configure now regards additional CFLAGS and LDFLAGS set as environment
+ variables.
+
========================================
13. Migration to pkg-config
========================================
}
STDOUT.WriteLine(" " + arg.arg + pad + word_wrap_and_indent(max_width + 5, arg.helptext));
}
+ STDOUT.WriteBlankLines(1);
+ STDOUT.WriteLine("Some influential environment variables:");
+ STDOUT.WriteLine(" CFLAGS C compiler flags");
+ STDOUT.WriteLine(" LDFLAGS linker flags");
WScript.Quit(1);
}
function toolset_setup_common_cflags()
{
+ var envCFLAGS = WshShell.Environment("PROCESS").Item("CFLAGS");
+
// CFLAGS for building the PHP dll
DEFINE("CFLAGS_PHP", "/D _USRDLL /D PHP7DLLTS_EXPORTS /D PHP_EXPORTS \
/D LIBZEND_EXPORTS /D TSRM_EXPORTS /D SAPI_EXPORTS /D WINVER=" + WINVER);
/D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 \
/D _USE_MATH_DEFINES");
+ if (envCFLAGS) {
+ ADD_FLAG("CFLAGS", envCFLAGS);
+ }
+
if (VS_TOOLSET) {
ADD_FLAG("CFLAGS", " /FD ");
function toolset_setup_common_ldlags()
{
+ var envLDFLAGS = WshShell.Environment("PROCESS").Item("LDFLAGS");
+
// General DLL link flags
DEFINE("DLL_LDFLAGS", "/dll ");
DEFINE("LDFLAGS", "/nologo ");
+ if (envLDFLAGS) {
+ ADD_FLAG("LDFLAGS", envLDFLAGS);
+ }
+
// we want msvcrt in the PHP DLL
ADD_FLAG("PHP_LDFLAGS", "/nodefaultlib:libcmt");