describe centos 7 behaviour better

This commit is contained in:
DubbleClick 2025-07-22 11:49:13 +07:00
parent 9e7e2e30a4
commit 62a58d410f

View File

@ -532,7 +532,7 @@ class Extension
$sharedLibString .= '-l' . $lib . ' ';
}
}
// move static libstdc++ to shared if we are on non-full-static build target
// move -lstdc++ to static libraries because centos 7 the shared libstdc++ is incomplete
if (str_contains((string) getenv('PATH'), 'rh/devtoolset-10')) {
$staticLibString .= ' -lstdc++';
$sharedLibString = str_replace('-lstdc++', '', $sharedLibString);