mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
really stupid patch
This commit is contained in:
parent
e162a0ecd6
commit
69e1acd5ae
@ -16,11 +16,20 @@ trait libaom
|
|||||||
*/
|
*/
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
putenv('libaom_CFLAGS=-D__PIE__');
|
$cc = getenv('CC');
|
||||||
|
$cxx = getenv('CXX');
|
||||||
|
if (str_contains($cc, 'zig') && getenv('SPC_LIBC') === 'musl') {
|
||||||
|
putenv('CC=' . $cc . ' -D_POSIX_SOURCE');
|
||||||
|
putenv('CXX=' . $cxx . ' -D_POSIX_SOURCE');
|
||||||
|
}
|
||||||
UnixCMakeExecutor::create($this)
|
UnixCMakeExecutor::create($this)
|
||||||
->setBuildDir("{$this->source_dir}/builddir")
|
->setBuildDir("{$this->source_dir}/builddir")
|
||||||
->addConfigureArgs('-DAOM_TARGET_CPU=generic')
|
->addConfigureArgs('-DAOM_TARGET_CPU=generic')
|
||||||
->build();
|
->build();
|
||||||
|
if (str_contains($cc, 'zig') && getenv('SPC_LIBC') === 'musl') {
|
||||||
|
putenv('CC=' . $cc);
|
||||||
|
putenv('CXX=' . $cxx);
|
||||||
|
}
|
||||||
$this->patchPkgconfPrefix(['aom.pc']);
|
$this->patchPkgconfPrefix(['aom.pc']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user