We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e162a0e commit 69e1acdCopy full SHA for 69e1acd
src/SPC/builder/unix/library/libaom.php
@@ -16,11 +16,20 @@ trait libaom
16
*/
17
protected function build(): void
18
{
19
- putenv('libaom_CFLAGS=-D__PIE__');
+ $cc = getenv('CC');
20
+ $cxx = getenv('CXX');
21
+ if (str_contains($cc, 'zig') && getenv('SPC_LIBC') === 'musl') {
22
+ putenv('CC=' . $cc . ' -D_POSIX_SOURCE');
23
+ putenv('CXX=' . $cxx . ' -D_POSIX_SOURCE');
24
+ }
25
UnixCMakeExecutor::create($this)
26
->setBuildDir("{$this->source_dir}/builddir")
27
->addConfigureArgs('-DAOM_TARGET_CPU=generic')
28
->build();
29
30
+ putenv('CC=' . $cc);
31
+ putenv('CXX=' . $cxx);
32
33
$this->patchPkgconfPrefix(['aom.pc']);
34
}
35
0 commit comments