mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 15:25:36 +08:00
remove extra -lunwind patch since we don't only need it in opcache
This commit is contained in:
@@ -51,15 +51,4 @@ class opcache extends Extension
|
|||||||
{
|
{
|
||||||
return 'Zend Opcache';
|
return 'Zend Opcache';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function patchBeforeMake(): bool
|
|
||||||
{
|
|
||||||
if (!str_contains(getenv('CC'), 'zig')) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
// opcache requires -lunwind, the equivalent to -lgcc_s that gcc automatically links
|
|
||||||
$extra_libs = trim(getenv('SPC_EXTRA_LIBS') . ' -lunwind');
|
|
||||||
f_putenv('SPC_EXTRA_LIBS=' . $extra_libs);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user