File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,8 @@ protected function buildEmbed(): void
311
311
->exec ('sed -i "s|//lib|/lib|g" Makefile ' )
312
312
->exec (getenv ('SPC_CMD_PREFIX_PHP_MAKE ' ) . ' INSTALL_ROOT= ' . BUILD_ROOT_PATH . " {$ vars } install " );
313
313
FileSystem::replaceFileStr (BUILD_BIN_PATH . '/php-config ' , 'prefix="" ' , 'prefix=" ' . BUILD_ROOT_PATH . '" ' );
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
}
315
317
316
318
private function getMakeExtraVars (): array
Original file line number Diff line number Diff line change @@ -298,6 +298,9 @@ protected function buildEmbed(): void
298
298
->exec ('rm ' . BUILD_ROOT_PATH . '/lib/libphp.a ' )
299
299
->exec ('ar rcs ' . BUILD_ROOT_PATH . '/lib/libphp.a *.o ' )
300
300
->exec ('rm -Rf ' . BUILD_ROOT_PATH . '/lib/php-o ' );
301
+ FileSystem::replaceFileStr (BUILD_BIN_PATH . '/php-config ' , 'prefix="" ' , 'prefix=" ' . BUILD_ROOT_PATH . '" ' );
302
+ FileSystem::replaceFileStr (BUILD_BIN_PATH . '/phpize ' , "prefix='' " , "prefix=' " . BUILD_ROOT_PATH . "' " );
303
+ FileSystem::replaceFileStr (BUILD_BIN_PATH . '/phpize ' , 's## ' , 's#/usr/local# ' );
301
304
}
302
305
303
306
private function getMakeExtraVars (): array
You can’t perform that action at this time.
0 commit comments