remove extra -lunwind patch since we don't only need it in opcache

This commit is contained in:
DubbleClick
2025-06-25 11:26:45 +07:00
parent cb62ffdfc2
commit 6f5fc43490

View File

@@ -51,15 +51,4 @@ class opcache extends Extension
{
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;
}
}