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