Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix phpize build when DEFINE() is involved
This commit is contained in:
Anatol Belski 2018-03-26 13:38:55 +02:00
commit 35f832a007

View File

@ -1503,7 +1503,11 @@ function EXTENSION(extname, file_list, shared, cflags, dllname, obj_dir)
DEFINE('CFLAGS_' + EXT + '_OBJ', '$(CFLAGS_PHP) $(CFLAGS_' + EXT + ')');
}
if (MODE_PHPIZE && FSO.FileExists(PHP_DIR + "/include/main/config.pickle.h")) {
if (MODE_PHPIZE) {
if (!FSO.FileExists(PHP_DIR + "/include/main/config.pickle.h")) {
var _tmp = FSO.CreateTextFile(PHP_DIR + "/include/main/config.pickle.h", true);
_tmp.Close();
}
cflags = "/FI main/config.pickle.h " + cflags;
}
ADD_FLAG("CFLAGS_" + EXT, cflags);