File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,8 @@ protected function buildEmbed(): void
311
311
shell ()->cd (SOURCE_PATH . '/php-src ' )
312
312
->exec ('sed -i "s|//lib|/lib|g" Makefile ' )
313
313
->exec (getenv ('SPC_CMD_PREFIX_PHP_MAKE ' ) . ' INSTALL_ROOT= ' . BUILD_ROOT_PATH . " {$ vars } install " );
314
+ FileSystem::replaceFileStr (BUILD_BIN_PATH . '/phpize ' , "prefix='' " , "prefix=' " . BUILD_ROOT_PATH . "' " );
315
+ FileSystem::replaceFileStr (BUILD_BIN_PATH . '/phpize ' , 's## ' , 's#/usr/local# ' );
314
316
$ php_config_str = FileSystem::readFile (BUILD_BIN_PATH . '/php-config ' );
315
317
str_replace ('prefix="" ' , 'prefix=" ' . BUILD_ROOT_PATH . '" ' , $ php_config_str );
316
318
// move mimalloc to the beginning of libs
Original file line number Diff line number Diff line change @@ -300,7 +300,8 @@ protected function buildEmbed(): void
300
300
->exec ('rm ' . BUILD_ROOT_PATH . '/lib/libphp.a ' )
301
301
->exec ('ar rcs ' . BUILD_ROOT_PATH . '/lib/libphp.a *.o ' )
302
302
->exec ('rm -Rf ' . BUILD_ROOT_PATH . '/lib/php-o ' );
303
-
303
+ FileSystem::replaceFileStr (BUILD_BIN_PATH . '/phpize ' , "prefix='' " , "prefix=' " . BUILD_ROOT_PATH . "' " );
304
+ FileSystem::replaceFileStr (BUILD_BIN_PATH . '/phpize ' , 's## ' , 's#/usr/local# ' );
304
305
$ php_config_str = FileSystem::readFile (BUILD_BIN_PATH . '/php-config ' );
305
306
str_replace ('prefix="" ' , 'prefix=" ' . BUILD_ROOT_PATH . '" ' , $ php_config_str );
306
307
// move mimalloc to the beginning of libs
You can’t perform that action at this time.
0 commit comments