mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
20 lines
489 B
PHP
20 lines
489 B
PHP
<?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);
|
|
}
|
|
}
|