only disable openmp for rh devtoolset-10

This commit is contained in:
DubbleClick
2025-05-30 20:41:17 +07:00
parent 3867b9933d
commit 5382362168
3 changed files with 7 additions and 4 deletions

View File

@@ -144,7 +144,7 @@ class SPCConfigUtil
}
}
// patch: imagick (imagemagick wrapper) for linux needs libgomp
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux' && getenv('SPC_LIBC') === 'musl') {
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux' && !(getenv('SPC_LIBC') === 'glibc' && str_contains(getenv('CC'), 'devtoolset-10'))) {
$short_name[] = '-lgomp';
}
return implode(' ', $short_name);