mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 23:35:37 +08:00
fix: error when building libtiff
This commit is contained in:
@@ -15,14 +15,20 @@ trait libtiff
|
|||||||
*/
|
*/
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
shell()->cd($this->source_dir)
|
$shell = shell()->cd($this->source_dir)
|
||||||
->exec(
|
->exec(
|
||||||
'./configure ' .
|
'./configure ' .
|
||||||
'--enable-static --disable-shared ' .
|
'--enable-static --disable-shared ' .
|
||||||
'--disable-cxx ' .
|
'--disable-cxx ' .
|
||||||
'--prefix='
|
'--prefix='
|
||||||
)
|
);
|
||||||
->exec('make clean')
|
|
||||||
|
// TODO: Remove this check when https://gitlab.com/libtiff/libtiff/-/merge_requests/635 will be merged and released
|
||||||
|
if (file_exists($this->source_dir . '/html')) {
|
||||||
|
$shell->exec('make clean');
|
||||||
|
}
|
||||||
|
|
||||||
|
$shell
|
||||||
->exec("make -j{$this->builder->concurrency}")
|
->exec("make -j{$this->builder->concurrency}")
|
||||||
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
|
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
|
||||||
$this->patchPkgconfPrefix(['libtiff-4.pc']);
|
$this->patchPkgconfPrefix(['libtiff-4.pc']);
|
||||||
|
|||||||
Reference in New Issue
Block a user