Fix libwebp static libs order

This commit is contained in:
crazywhalecc
2025-07-22 22:09:45 +08:00
parent 2c81ca2bf8
commit a095d489f3
3 changed files with 8 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ class SPCConfigUtil
if (SPCTarget::getTargetOS() === 'Darwin') {
$libs .= " {$this->getFrameworksString($extensions)}";
}
$libs .= $this->builder instanceof MacOSBuilder ? ' -lc++' : ' -lstdc++';
$libs .= $this->builder->hasCpp() && $this->builder instanceof MacOSBuilder ? ' -lc++' : ' -lstdc++';
if ($this->libs_only_deps) {
return [