diff --git a/src/SPC/builder/extension/imagick.php b/src/SPC/builder/extension/imagick.php index 4c5e19b3..bef772ee 100644 --- a/src/SPC/builder/extension/imagick.php +++ b/src/SPC/builder/extension/imagick.php @@ -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') || str_contains(getenv('PATH'), 'gcc-toolset')) { + if (str_contains(getenv('PATH'), 'rh/devtoolset') || str_contains(getenv('PATH'), 'rh/gcc-toolset')) { $static .= ' -l:libstdc++.a'; $shared = str_replace('-lstdc++', '', $shared); }