mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 08:15:39 +08:00
add extra runtime objects for shared libraries built directly by php make too
This commit is contained in:
@@ -41,10 +41,12 @@ class event extends Extension
|
||||
*/
|
||||
public function patchBeforeMake(): bool
|
||||
{
|
||||
$patched = parent::patchBeforeMake();
|
||||
// Prevent event extension compile error on macOS
|
||||
if ($this->builder instanceof MacOSBuilder) {
|
||||
FileSystem::replaceFileRegex(SOURCE_PATH . '/php-src/main/php_config.h', '/^#define HAVE_OPENPTY 1$/m', '');
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return $patched;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user