mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
Add frankenphp SAPI build support
This commit is contained in:
@@ -19,4 +19,11 @@ class micro
|
||||
{
|
||||
FileSystem::replaceFileStr("{$package->getSourceDir()}/Makefile", 'OVERALL_TARGET =', 'OVERALL_TARGET = libphp.la');
|
||||
}
|
||||
|
||||
#[BeforeStage('php', [php::class, 'makeForUnix'], 'php-micro')]
|
||||
#[PatchDescription('Patch Makefile to skip installing micro binary')]
|
||||
public function patchMakefileBeforeUnixMake(TargetPackage $package): void
|
||||
{
|
||||
FileSystem::replaceFileStr("{$package->getSourceDir()}/Makefile", 'install-micro', '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user