mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 23:35:37 +08:00
remove getLibFilesString from Extension buildUnixShared
This commit is contained in:
@@ -356,9 +356,7 @@ class Extension
|
|||||||
{
|
{
|
||||||
$config = (new SPCConfigUtil($this->builder))->config([$this->getName()], with_dependencies: true);
|
$config = (new SPCConfigUtil($this->builder))->config([$this->getName()], with_dependencies: true);
|
||||||
$sharedLibs = '';
|
$sharedLibs = '';
|
||||||
$staticLibs = $this->getLibFilesString();
|
$staticLibs = '';
|
||||||
$staticLibs = str_replace(BUILD_LIB_PATH . '/lib', '-l', $staticLibs);
|
|
||||||
$staticLibs = str_replace('.a', '', $staticLibs);
|
|
||||||
foreach (explode('-l', $config['libs']) as $lib) {
|
foreach (explode('-l', $config['libs']) as $lib) {
|
||||||
$lib = trim($lib);
|
$lib = trim($lib);
|
||||||
if ($lib === '') {
|
if ($lib === '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user