mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
move -lstdc++ to the end of the libraries
This commit is contained in:
@@ -80,9 +80,7 @@ class SPCConfigUtil
|
|||||||
}
|
}
|
||||||
if ($this->builder->hasCpp()) {
|
if ($this->builder->hasCpp()) {
|
||||||
$libcpp = SPCTarget::getTargetOS() === 'Darwin' ? '-lc++' : '-lstdc++';
|
$libcpp = SPCTarget::getTargetOS() === 'Darwin' ? '-lc++' : '-lstdc++';
|
||||||
if (!str_contains($libs, $libcpp)) {
|
$libs = str_replace($libcpp, '', $libs) . " {$libcpp}";
|
||||||
$libs .= " {$libcpp}";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->libs_only_deps) {
|
if ($this->libs_only_deps) {
|
||||||
|
|||||||
Reference in New Issue
Block a user