ARG_ENABLE('object-out-dir', 'Alternate location for binary objects during build', '');\r
object_out_dir_option_handle();\r
\r
-ARG_ENABLE('debug', 'Compile with debugging symbols', "no");\r
+ARG_ENABLE('debug', 'Compile with debugging symbols', PHP_DEBUG);\r
ARG_ENABLE('debug-pack', 'Release binaries with external debug symbols (--enable-debug must not be specified)', 'no');\r
if (PHP_DEBUG == "yes" && PHP_DEBUG_PACK == "yes") {\r
ERROR("Use of both --enable-debug and --enable-debug-pack not allowed.");\r
CJ = FSO.CreateTextFile(dest + "/config.phpize.js");
CJ.WriteLine("var PHP_ZTS =" + '"' + PHP_ZTS + '"');
+ CJ.WriteLine("var PHP_DEBUG=" + '"' + PHP_DEBUG + '"');
CJ.WriteLine("var PHP_DLL_LIB =" + '"' + get_define('PHPLIB') + '"');
CJ.WriteLine("var PHP_DLL =" + '"' + get_define('PHPDLL') + '"');
// Pull in code for the base detection\r
modules = file_get_contents(PHP_DIR + "/script/config.w32.phpize.in");\r
\r
-C.WriteLine("ARG_ENABLE('debug', 'Compile with debugging symbols', \"no\");");\r
+C.WriteLine("ARG_ENABLE('debug', 'Compile with debugging symbols', PHP_DEBUG);");\r
find_config_w32(".");\r
\r
// Now generate contents of module based on MODULES, chasing dependencies\r