mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
libheif and libde265 report dependency on -lc++ instead of -lstdc++
This commit is contained in:
parent
76b36cef35
commit
2ac5438f6b
@ -6,6 +6,7 @@ namespace SPC\builder\unix\library;
|
|||||||
|
|
||||||
use SPC\exception\FileSystemException;
|
use SPC\exception\FileSystemException;
|
||||||
use SPC\exception\RuntimeException;
|
use SPC\exception\RuntimeException;
|
||||||
|
use SPC\store\FileSystem;
|
||||||
use SPC\util\executor\UnixCMakeExecutor;
|
use SPC\util\executor\UnixCMakeExecutor;
|
||||||
|
|
||||||
trait libde265
|
trait libde265
|
||||||
@ -19,6 +20,11 @@ trait libde265
|
|||||||
UnixCMakeExecutor::create($this)
|
UnixCMakeExecutor::create($this)
|
||||||
->addConfigureArgs('-DENABLE_SDL=OFF')
|
->addConfigureArgs('-DENABLE_SDL=OFF')
|
||||||
->build();
|
->build();
|
||||||
|
|
||||||
|
if (PHP_OS_FAMILY === 'Linux') {
|
||||||
|
$libheifpc = realpath(BUILD_LIB_PATH . '/pkgconfig/libheif.pc');
|
||||||
|
FileSystem::replaceFileStr($libheifpc, '-lc++', '-lstdc++');
|
||||||
|
}
|
||||||
$this->patchPkgconfPrefix(['libde265.pc']);
|
$this->patchPkgconfPrefix(['libde265.pc']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,6 +40,10 @@ trait libheif
|
|||||||
'-DENABLE_PLUGIN_LOADING=OFF',
|
'-DENABLE_PLUGIN_LOADING=OFF',
|
||||||
)
|
)
|
||||||
->build();
|
->build();
|
||||||
|
if (PHP_OS_FAMILY === 'Linux') {
|
||||||
|
$libheifpc = realpath(BUILD_LIB_PATH . '/pkgconfig/libheif.pc');
|
||||||
|
FileSystem::replaceFileStr($libheifpc, '-lc++', '-lstdc++');
|
||||||
|
}
|
||||||
$this->patchPkgconfPrefix(['libheif.pc']);
|
$this->patchPkgconfPrefix(['libheif.pc']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user