Support define php extension arg-type in config

This commit is contained in:
crazywhalecc
2026-02-06 16:38:03 +08:00
parent 478b85879f
commit 5c7ab48718
5 changed files with 124 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace Package\Artifact;
use StaticPHP\Attribute\Artifact\AfterSourceExtract;
use StaticPHP\Attribute\PatchDescription;
use StaticPHP\Util\SourcePatcher;
class pkg_config
{
#[AfterSourceExtract('pkg-config')]
#[PatchDescription('Patch pkg-config for GCC 15 compatibility - __builtin_available issue')]
public function patch(string $target_path): void
{
SourcePatcher::patchFile('pkg-config_gcc15.patch', $target_path);
}
}