mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix lerc build (needs -lstdc++)
This commit is contained in:
parent
be0dbcd9eb
commit
8116e8898e
@ -8,6 +8,7 @@ use SPC\exception\FileSystemException;
|
|||||||
use SPC\exception\RuntimeException;
|
use SPC\exception\RuntimeException;
|
||||||
use SPC\store\FileSystem;
|
use SPC\store\FileSystem;
|
||||||
use SPC\util\executor\UnixAutoconfExecutor;
|
use SPC\util\executor\UnixAutoconfExecutor;
|
||||||
|
use SPC\util\SPCTarget;
|
||||||
|
|
||||||
trait libtiff
|
trait libtiff
|
||||||
{
|
{
|
||||||
@ -17,7 +18,9 @@ trait libtiff
|
|||||||
*/
|
*/
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
|
$libcpp = SPCTarget::getTargetOS() === 'Darwin' ? '-lc++' : '-lstdc++';
|
||||||
FileSystem::replaceFileStr($this->source_dir . '/configure', '-lwebp', '-lwebp -lsharpyuv');
|
FileSystem::replaceFileStr($this->source_dir . '/configure', '-lwebp', '-lwebp -lsharpyuv');
|
||||||
|
FileSystem::replaceFileStr($this->source_dir . '/configure', '-l"$lerc_lib_name"', '-l"$lerc_lib_name" ' . $libcpp);
|
||||||
UnixAutoconfExecutor::create($this)
|
UnixAutoconfExecutor::create($this)
|
||||||
->configure(
|
->configure(
|
||||||
// zlib deps
|
// zlib deps
|
||||||
@ -31,6 +34,8 @@ trait libtiff
|
|||||||
'--disable-old-jpeg',
|
'--disable-old-jpeg',
|
||||||
'--disable-jpeg12',
|
'--disable-jpeg12',
|
||||||
'--disable-libdeflate',
|
'--disable-libdeflate',
|
||||||
|
'--disable-tools',
|
||||||
|
'--disable-contrib',
|
||||||
'--disable-cxx',
|
'--disable-cxx',
|
||||||
'--without-x',
|
'--without-x',
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user