imagick needs static libstdc++ on gcc-toolset (successor of devtoolset) too

This commit is contained in:
DubbleClick 2025-08-19 20:01:10 +07:00
parent 4e9545262d
commit 811aeb58ea

View File

@ -19,7 +19,7 @@ class imagick extends Extension
protected function splitLibsIntoStaticAndShared(string $allLibs): array
{
[$static, $shared] = parent::splitLibsIntoStaticAndShared($allLibs);
if (str_contains(getenv('PATH'), 'rh/devtoolset-10')) {
if (str_contains(getenv('PATH'), 'rh/devtoolset-10') || str_contains(getenv('PATH'), 'gcc-toolset')) {
$static .= ' -l:libstdc++.a';
$shared = str_replace('-lstdc++', '', $shared);
}