File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ public function buildCgi(): void
172172 $ extra_libs = getenv ('SPC_EXTRA_LIBS ' ) ?: '' ;
173173
174174 // add nmake wrapper
175- FileSystem::writeFile (SOURCE_PATH . '\php-src\nmake_cgi_wrapper.bat ' , "nmake /nologo LIBS_CGI= \"ws2_32.lib shell32 .lib {$ extra_libs }\" EXTRA_LD_FLAGS_PROGRAM= %* " );
175+ FileSystem::writeFile (SOURCE_PATH . '\php-src\nmake_cgi_wrapper.bat ' , "nmake /nologo LIBS_CGI= \"ws2_32.lib kernel32.lib advapi32 .lib {$ extra_libs }\" EXTRA_LD_FLAGS_PROGRAM= %* " );
176176
177177 cmd ()->cd (SOURCE_PATH . '\php-src ' )->exec ("{$ this ->sdk_prefix } nmake_cgi_wrapper.bat --task-args php-cgi.exe " );
178178
Original file line number Diff line number Diff line change @@ -572,10 +572,10 @@ public static function patchWindowsCGITarget(): void
572572 // cli: $(BUILD_DIR)\php.exe: $(DEPS_CLI) $(CLI_GLOBAL_OBJS) $(BUILD_DIR)\$(PHPLIB) $(BUILD_DIR)\php.exe.res $(BUILD_DIR)\php.exe.manifest
573573 // $lines[$line_num] = '$(BUILD_DIR)\php.exe: generated_files $(DEPS_CLI) $(CLI_GLOBAL_OBJS) $(PHP_GLOBAL_OBJS) $(STATIC_EXT_OBJS) $(ASM_OBJS) $(BUILD_DIR)\php.exe.res $(BUILD_DIR)\php.exe.manifest';
574574 // cgi: $(BUILD_DIR)\php-cgi.exe: $(DEPS_CGI) $(CGI_GLOBAL_OBJS) $(BUILD_DIR)\$(PHPLIB) $(BUILD_DIR)\php-cgi.exe.res $(BUILD_DIR)\php-cgi.exe.manifest
575- $ lines [$ line_num ] = '$(BUILD_DIR)\php-cgi.exe: generated_files $(DEPS_CGI) $(CGI_GLOBAL_OBJS) $(PHP_GLOBAL_OBJS) $(STATIC_EXT_OBJS) $(ASM_OBJS) $(BUILD_DIR)\$(PHPLIB ) $(BUILD_DIR)\php-cgi.exe.res $(BUILD_DIR)\php-cgi.exe.manifest ' ;
575+ $ lines [$ line_num ] = '$(BUILD_DIR)\php-cgi.exe: $(DEPS_CGI) $(CGI_GLOBAL_OBJS) $(PHP_GLOBAL_OBJS) $(STATIC_EXT_OBJS) $(ASM_OBJS) $(BUILD_DIR)\php-cgi.exe.res $(BUILD_DIR)\php-cgi.exe.manifest ' ;
576576
577577 // cli: @"$(LINK)" /nologo $(CGI_GLOBAL_OBJS_RESP) $(BUILD_DIR)\$(PHPLIB) $(LIBS_CGI) $(BUILD_DIR)\php-cgi.exe.res /out:$(BUILD_DIR)\php-cgi.exe $(LDFLAGS) $(LDFLAGS_CGI)
578- $ lines [$ line_num + 1 ] = "\t" . '@"$(LINK)" /nologo $(PHP_GLOBAL_OBJS_RESP) $(CGI_GLOBAL_OBJS_RESP) $(BUILD_DIR)\$(PHPLIB) $( STATIC_EXT_OBJS_RESP) $(STATIC_EXT_LIBS) $(ASM_OBJS) $(LIBS) $(LIBS_CGI) $(BUILD_DIR)\php-cgi.exe.res /out:$(BUILD_DIR)\php-cgi.exe $(LDFLAGS) $(LDFLAGS_CGI) /ltcg /nodefaultlib:msvcrt /nodefaultlib:msvcrtd /ignore:4286 ' ;
578+ $ lines [$ line_num + 1 ] = "\t" . '@"$(LINK)" /nologo $(PHP_GLOBAL_OBJS_RESP) $(CGI_GLOBAL_OBJS_RESP) $(STATIC_EXT_OBJS_RESP) $(STATIC_EXT_LIBS) $(ASM_OBJS) $(LIBS) $(LIBS_CGI) $(BUILD_DIR)\php-cgi.exe.res /out:$(BUILD_DIR)\php-cgi.exe $(LDFLAGS) $(LDFLAGS_CGI) /ltcg /nodefaultlib:msvcrt /nodefaultlib:msvcrtd /ignore:4286 ' ;
579579 FileSystem::writeFile (SOURCE_PATH . '/php-src/Makefile ' , implode ("\r\n" , $ lines ));
580580 }
581581
You can’t perform that action at this time.
0 commit comments