fpic for liblzma

This commit is contained in:
DubbleClick 2025-06-06 09:57:20 +07:00
parent 861010af0e
commit 3b9670c202
2 changed files with 10 additions and 5 deletions

View File

@ -16,7 +16,12 @@ trait xz
public function build(): void
{
shell()->cd($this->source_dir)
->exec(
->setEnv([
'CFLAGS' => $this->getLibExtraCFlags(),
'LDFLAGS' => $this->getLibExtraLdFlags(),
'LIBS' => $this->getLibExtraLibs(),
])
->execWithEnv(
'./configure ' .
'--enable-static ' .
'--disable-shared ' .
@ -26,9 +31,9 @@ trait xz
'--with-libiconv ' .
'--prefix='
)
->exec('make clean')
->exec("make -j{$this->builder->concurrency}")
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
->execWithEnv('make clean')
->execWithEnv("make -j{$this->builder->concurrency}")
->execWithEnv('make install DESTDIR=' . BUILD_ROOT_PATH);
$this->patchPkgconfPrefix(['liblzma.pc']);
}
}

View File

@ -75,7 +75,7 @@ class CraftCommand extends BaseCommand
}
if (isset($craft['php-version'])) {
$args[] = '--with-php=' . $craft['php-version'];
if (!array_key_exists('ignore-cache-sources', $craft['download-options']) || $craft['download-options']['ignore-cache-sources'] === false) {
if (!array_key_exists('ignore-cache-sources', $craft['download-options'])) {
$craft['download-options']['ignore-cache-sources'] = 'php-src';
}
}