Merge branch 'main' into feat/xdebug-dynamic

This commit is contained in:
crazywhalecc
2025-04-18 09:45:19 +08:00
15 changed files with 55 additions and 25 deletions

View File

@@ -94,8 +94,8 @@ class SPCConfigUtil
}
}
}
// patch: imagick (imagemagick wrapper) for linux needs -lgomp
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux') {
// patch: imagick (imagemagick wrapper) for linux needs libgomp
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux' && getenv('SPC_LIBC') === 'musl') {
$short_name[] = '-lgomp';
}
return implode(' ', $short_name);