Skip to content

Commit f7080c6

Browse files
committed
don't download libpng, zlib, brotli, as we already build them
1 parent 26842fb commit f7080c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/SPC/builder/unix/library/libjxl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public function patchBeforeBuild(): bool
1818
}
1919
FileSystem::replaceFileStr(
2020
$this->source_dir . '/deps.sh',
21-
'return 0',
22-
'# return 0',
21+
['return 0', 'download_github third_party/brotli', 'download_github third_party/zlib', 'download_github third_party/libpng'],
22+
['# return 0', '# download_github third_party/brotli', '# download_github third_party/zlib', '# download_github third_party/libpng'],
2323
);
2424
shell()->cd($this->source_dir)
2525
->exec('./deps.sh');

src/SPC/builder/unix/library/libtiff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait libtiff
1818
*/
1919
protected function build(): void
2020
{
21-
$libcpp = SPCTarget::getTargetOS() === 'Darwin' ? '-lc++' : '-lstdc++';
21+
$libcpp = SPCTarget::getTargetOS() === 'Linux' ? '-lstdc++' : '-lc++';
2222
FileSystem::replaceFileStr($this->source_dir . '/configure', '-lwebp', '-lwebp -lsharpyuv');
2323
FileSystem::replaceFileStr($this->source_dir . '/configure', '-l"$lerc_lib_name"', '-l"$lerc_lib_name" ' . $libcpp);
2424
UnixAutoconfExecutor::create($this)

0 commit comments

Comments
 (0)